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:
Ebag333
2016-06-06 16:22:08 -07:00
parent 4c55827aa4
commit 8eb0b942c8

View File

@@ -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()