Apply drones and fighters from projected fit at range of 0
This commit is contained in:
@@ -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):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user