Remove _init_ hack to import the default pattern
Removed the kludgey method of using _init_ to check to see if the Uniform 25/25/25/25 damage pattern exists, and if missing create it. Moved creation of it to prefetch.py.
This commit is contained in:
@@ -33,13 +33,6 @@ class DamagePattern():
|
||||
|
||||
return cls.instance
|
||||
|
||||
def __init__(self):
|
||||
uniform = eos.db.getDamagePattern("Uniform")
|
||||
if uniform is None:
|
||||
uniform = eos.types.DamagePattern(25, 25, 25, 25)
|
||||
uniform.name = "Uniform"
|
||||
eos.db.save(uniform)
|
||||
|
||||
def getDamagePatternList(self):
|
||||
return eos.db.getDamagePatternList()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user