Skip to content

Commit decf7ff

Browse files
committed
Fix #351
1 parent 31b1c94 commit decf7ff

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

eos/saveddata/ship.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ def calculateModifiedAttributes(self, fit, runTime, forceProjected = False):
7070
if forceProjected: return
7171
for effect in self.item.effects.itervalues():
7272
if effect.runTime == runTime and effect.isType("passive"):
73+
# Ships have effects that utilize the level of a skill as an
74+
# additional operator to the modifier. These are defined in
75+
# the effect itself, and these skillbooks are registered when
76+
# they are provided. However, we must re-register the ship
77+
# before each effect, otherwise effects that do not have
78+
# skillbook modifiers will use the stale modifier value
79+
# GH issue #351
80+
fit.register(self)
7381
effect.handler(fit, self, ("ship",))
7482

7583
def validateModeItem(self, item):

0 commit comments

Comments
 (0)