Merge branch 'translate' into 'master'

Translate

See merge request ynerant/squirrel-battle!73
This commit is contained in:
eichhornchen
2021-01-10 21:52:39 +01:00
6 changed files with 522 additions and 282 deletions

View File

@ -774,7 +774,9 @@ class FightingEntity(Entity):
The entity takes damage from the attacker
based on their respective stats.
"""
damage = max(1, amount - self.constitution)
damage = 0
if amount != 0:
damage = max(1, amount - self.constitution)
self.health -= damage
if self.health <= 0:
self.die()