Create a dummy translation annotation for damage patterns, and do translations on the GUI side

This commit is contained in:
blitzmann
2020-07-10 23:36:52 -04:00
parent 2203767fde
commit 7451ce147e
2 changed files with 10 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ from sqlalchemy.orm import reconstructor
import eos.db
_t = wx.GetTranslation
_t = lambda x: x
# Order is significant here - UI uses order as-is for built-in patterns
BUILTINS = OrderedDict([
@@ -340,6 +340,10 @@ class DamagePattern:
categories.append(remainingName[start + 1:end])
remainingName = remainingName[end + 1:].strip()
@property
def isBuiltin(self):
return self.ID < 0
def __deepcopy__(self, memo):
p = DamagePattern(self.emAmount, self.thermalAmount, self.kineticAmount, self.explosiveAmount)
p.rawName = "%s copy" % self.rawName