From 4938e51e552c391e3a497d94a0e7cdda1b5b8fbd Mon Sep 17 00:00:00 2001 From: Corollax Date: Sat, 20 Nov 2010 08:21:50 -0600 Subject: [PATCH] Replaced the last edit with Entity's hack Looks nice, I think? O,o --- service/damagePattern.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/service/damagePattern.py b/service/damagePattern.py index 2cfa9cc5c..1bb455ff0 100644 --- a/service/damagePattern.py +++ b/service/damagePattern.py @@ -73,10 +73,7 @@ class DamagePattern(): for pattern in imports: if pattern.name in lookup: match = lookup[pattern.name] - match.emAmount = pattern.emAmount - match.thermalAmount = pattern.thermalAmount - match.kineticAmount = pattern.kineticAmount - match.explosiveAmount = pattern.explosiveAmount + match.__dict__.update(pattern.__dict__) else: eos.db.save(pattern) eos.db.commit()