Disable fit add on pages based on context (ship vs citadel)
This commit is contained in:
@@ -332,7 +332,6 @@ class Skill(HandledItem):
|
||||
for effect in item.effects.itervalues():
|
||||
if effect.runTime == runTime and effect.isType("passive") and (not isinstance(fit.ship, eos.types.Citadel) or effect.isType("structure")):
|
||||
try:
|
||||
print "Running effect: ", self, fit, runTime, effect
|
||||
effect.handler(fit, self, ("skill",))
|
||||
except AttributeError:
|
||||
continue
|
||||
|
||||
@@ -194,6 +194,10 @@ class Fit(object):
|
||||
# set fit attributes the same as ship
|
||||
self.extraAttributes = self.ship.itemModifiedAttributes
|
||||
|
||||
@property
|
||||
def isStructure(self):
|
||||
return isinstance(self.ship, Citadel)
|
||||
|
||||
@property
|
||||
def drones(self):
|
||||
return self.__drones
|
||||
|
||||
Reference in New Issue
Block a user