MCPcopy Create free account
hub / github.com/AxlLind/AdventOfCode / effective_power

Method effective_power

2018/src/24.py:31–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29 return Unit(int(units), int(hp), int(dmg), dmgtype, int(initiative), weaknesses, immunities)
30
31 def effective_power(self) -> int:
32 return self.units * self.dmg
33
34 def dmg_against(self, u: 'Unit') -> int:
35 if self.dmgtype in u.immunities:

Callers 1

fightFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected