Apply drones and fighters from projected fit at range of 0

This commit is contained in:
DarkPhoenix
2019-09-30 01:21:39 +03:00
parent ce7df2d01f
commit 4c1fa09795

View File

@@ -932,15 +932,20 @@ class Fit:
To support a simpler way of doing self projections (so that we don't have to make a copy of the fit and To support a simpler way of doing self projections (so that we don't have to make a copy of the fit and
recalculate), this function was developed to be a common source of projected effect application. recalculate), this function was developed to be a common source of projected effect application.
""" """
c = chain(self.drones, self.fighters, self.modules) for item in chain(self.drones, self.fighters):
for item in c:
if item is not None: if item is not None:
# apply effects onto target fit x amount of times # apply effects onto target fit x amount of times
for _ in range(projectionInfo.amount): for _ in range(projectionInfo.amount):
targetFit.register(item, origin=self) targetFit.register(item, origin=self)
item.calculateModifiedAttributes( item.calculateModifiedAttributes(
targetFit, runTime, forceProjected=True, targetFit, runTime, forceProjected=True,
forcedProjRange=projectionInfo.projectionRange) forcedProjRange=0)
for mod in self.modules:
for _ in range(projectionInfo.amount):
targetFit.register(mod, origin=self)
mod.calculateModifiedAttributes(
targetFit, runTime, forceProjected=True,
forcedProjRange=projectionInfo.projectionRange)
def fill(self): def fill(self):
""" """