Add ability to look at tactical mode item info.

(cherry picked from commit f5776a0)
This commit is contained in:
Ebag333
2016-12-08 13:12:15 -08:00
parent edfa130939
commit 1a127bb1a6
2 changed files with 25 additions and 3 deletions

View File

@@ -53,3 +53,8 @@ class Mode(ItemAttrShortcut, HandledItem):
for effect in self.item.effects.itervalues():
if effect.runTime == runTime and effect.activeByDefault:
effect.handler(fit, self, context=("module",))
def getValidCharges(self):
# Modes don't have charges, but it is queried for so return nothing.
validCharges = set()
return validCharges