MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / __deepcopy__

Method __deepcopy__

eos/saveddata/fighter.py:426–434  ·  view source on GitHub ↗
(self, memo)

Source from the content-addressed store, hash-verified

424 i += 1
425
426 def __deepcopy__(self, memo):
427 copy = Fighter(self.item)
428 copy._amount = self._amount
429 copy.active = self.active
430 for ability in self.abilities:
431 copyAbility = next(filter(lambda a: a.effectID == ability.effectID, copy.abilities))
432 copyAbility.active = ability.active
433 copy.projectionRange = self.projectionRange
434 return copy
435
436 def rebase(self, item):
437 amount = self._amount

Callers

nothing calls this directly

Calls 1

FighterClass · 0.85

Tested by

no test coverage detected