MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / rebase

Method rebase

eos/saveddata/fighter.py:436–448  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

434 return copy
435
436 def rebase(self, item):
437 amount = self._amount
438 active = self.active
439 abilityEffectStates = {a.effectID: a.active for a in self.abilities}
440 projectionRange = self.projectionRange
441
442 Fighter.__init__(self, item)
443 self._amount = amount
444 self.active = active
445 for ability in self.abilities:
446 if ability.effectID in abilityEffectStates:
447 ability.active = abilityEffectStates[ability.effectID]
448 self.projectionRange = projectionRange
449
450 def fits(self, fit):
451 # If ships doesn't support this type of fighter, don't add it

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected