Implemented copying the currently open fit stats to the clipboard.

This commit is contained in:
Alexander Maryanovsky
2018-09-08 15:06:31 +03:00
committed by Gochim
parent 9e78cd1076
commit 58f853de5b
3 changed files with 189 additions and 0 deletions

View File

@@ -78,6 +78,15 @@ class DamagePattern:
"exp" : "explosive"
}
@classmethod
def oneType(cls, damageType, amount=100):
pattern = DamagePattern()
pattern.update(amount if damageType == "em" else 0,
amount if damageType == "thermal" else 0,
amount if damageType == "kinetic" else 0,
amount if damageType == "explosive" else 0)
return pattern
@classmethod
def importPatterns(cls, text):
lines = re.split('[\n\r]+', text)