Repaired a but : bears dealt 1 damage instead of 0.

This commit is contained in:
eichhornchen 2021-01-10 21:15:42 +01:00
parent a1d69203c9
commit 893a23f95c
4 changed files with 34 additions and 29 deletions

View File

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

View File

@ -1,12 +1,12 @@
#, python-brace-format msgid "ring_of_critical_damage"
msgid "{name} takes {amount} damage." msgstr ""
msgstr "{name} nimmt {amount} Schadenspunkte."
msgid "ring_of_more_experience" msgid "ring_of_more_experience"
msgstr "" msgstr ""
msgid "ring_of_critical_damage" #, python-brace-format
msgstr "" msgid "{name} takes {amount} damage."
msgstr "{name} nimmt {amount} Schadenspunkte."
# SOME DESCRIPTIVE TITLE. # SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR ÿnérant, eichhornchen, nicomarg, charlse, ifugao # Copyright (C) YEAR ÿnérant, eichhornchen, nicomarg, charlse, ifugao
@ -18,7 +18,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: squirrelbattle 3.14.1\n" "Project-Id-Version: squirrelbattle 3.14.1\n"
"Report-Msgid-Bugs-To: squirrel-battle@crans.org\n" "Report-Msgid-Bugs-To: squirrel-battle@crans.org\n"
"POT-Creation-Date: 2021-01-10 20:35+0100\n" "POT-Creation-Date: 2021-01-10 21:14+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -63,7 +63,8 @@ msgstr "Ziehen Sie zu der freundlichen Einheit hin, um mit ihr zu sprechen"
#: squirrelbattle/display/gamedisplay.py:212 #: squirrelbattle/display/gamedisplay.py:212
#, python-brace-format #, python-brace-format
msgid "Use {key} then move to talk to the entity" msgid "Use {key} then move to talk to the entity"
msgstr "Verwenden Sie {key} dann bewegen Sie sich, um mit der Einheit zu sprechen" msgstr ""
"Verwenden Sie {key} dann bewegen Sie sich, um mit der Einheit zu sprechen"
#: squirrelbattle/display/menudisplay.py:124 #: squirrelbattle/display/menudisplay.py:124
#: squirrelbattle/display/menudisplay.py:149 #: squirrelbattle/display/menudisplay.py:149
@ -132,8 +133,9 @@ msgstr "{player} täuscht seinem Körper mit {entity} aus."
msgid "" msgid ""
"The ennemies have -{max(1, self.held_by.intelligence // 2)}strength for 3 " "The ennemies have -{max(1, self.held_by.intelligence // 2)}strength for 3 "
"turns" "turns"
msgstr "Die Feinde haben 3 Runden lang - {max(1, self.held_by.intelligence // 2)} Stärke" msgstr ""
"" "Die Feinde haben 3 Runden lang - {max(1, self.held_by.intelligence // 2)} "
"Stärke"
#: squirrelbattle/entities/items.py:552 #: squirrelbattle/entities/items.py:552
#, python-brace-format #, python-brace-format
@ -142,7 +144,9 @@ msgstr "{name}"
#: squirrelbattle/entities/player.py:83 #: squirrelbattle/entities/player.py:83
msgid "It worked! Nearby ennemies will be confused for 3 turns." msgid "It worked! Nearby ennemies will be confused for 3 turns."
msgstr "Es funktionierte! In der Nähe befindliche Feinde werden 3 Runden lang verwirrt." msgstr ""
"Es funktionierte! In der Nähe befindliche Feinde werden 3 Runden lang "
"verwirrt."
#: squirrelbattle/entities/player.py:86 #: squirrelbattle/entities/player.py:86
msgid "It worked, but there is no one nearby..." msgid "It worked, but there is no one nearby..."
@ -204,17 +208,17 @@ msgstr "Es ist ein kritischer Treffer!"
msgid "{name} hits {opponent}." msgid "{name} hits {opponent}."
msgstr "{name} schlägt {opponent}." msgstr "{name} schlägt {opponent}."
#: squirrelbattle/interfaces.py:781 #: squirrelbattle/interfaces.py:782
#, python-brace-format #, python-brace-format
msgid "{name} takes {damage} damage." msgid "{name} takes {damage} damage."
msgstr "{name} erleidet {damage} Schaden." msgstr "{name} erleidet {damage} Schaden."
#: squirrelbattle/interfaces.py:783 #: squirrelbattle/interfaces.py:784
#, python-brace-format #, python-brace-format
msgid "{name} dies." msgid "{name} dies."
msgstr "{name} stirbt." msgstr "{name} stirbt."
#: squirrelbattle/interfaces.py:817 #: squirrelbattle/interfaces.py:818
#, python-brace-format #, python-brace-format
msgid "{entity} said: {message}" msgid "{entity} said: {message}"
msgstr "{entity} hat gesagt: {message}" msgstr "{entity} hat gesagt: {message}"

View File

@ -1,12 +1,12 @@
#, python-brace-format msgid "ring_of_critical_damage"
msgid "{name} takes {amount} damage." msgstr "ring_of_critical_damage"
msgstr "{name} recibe {amount} daño."
msgid "ring_of_more_experience" msgid "ring_of_more_experience"
msgstr "ring_of_more_experience" msgstr "ring_of_more_experience"
msgid "ring_of_critical_damage" #, python-brace-format
msgstr "ring_of_critical_damage" msgid "{name} takes {amount} damage."
msgstr "{name} recibe {amount} daño."
# SOME DESCRIPTIVE TITLE. # SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR ÿnérant, eichhornchen, nicomarg, charlse, ifugao # Copyright (C) YEAR ÿnérant, eichhornchen, nicomarg, charlse, ifugao
@ -18,7 +18,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: squirrelbattle 3.14.1\n" "Project-Id-Version: squirrelbattle 3.14.1\n"
"Report-Msgid-Bugs-To: squirrel-battle@crans.org\n" "Report-Msgid-Bugs-To: squirrel-battle@crans.org\n"
"POT-Creation-Date: 2021-01-10 20:35+0100\n" "POT-Creation-Date: 2021-01-10 21:14+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -132,8 +132,8 @@ msgid ""
"The ennemies have -{max(1, self.held_by.intelligence // 2)}strength for 3 " "The ennemies have -{max(1, self.held_by.intelligence // 2)}strength for 3 "
"turns" "turns"
msgstr "" msgstr ""
"Los enemigos tienen - {max(1, self.held_by.intelligence // 2)} fuerza durante 3" "Los enemigos tienen - {max(1, self.held_by.intelligence // 2)} fuerza "
"turnos" "durante 3turnos"
#: squirrelbattle/entities/items.py:552 #: squirrelbattle/entities/items.py:552
#, python-brace-format #, python-brace-format
@ -204,17 +204,17 @@ msgstr "¡Es un golpe crítico!"
msgid "{name} hits {opponent}." msgid "{name} hits {opponent}."
msgstr "{name} golpea a {opponent}." msgstr "{name} golpea a {opponent}."
#: squirrelbattle/interfaces.py:781 #: squirrelbattle/interfaces.py:782
#, python-brace-format #, python-brace-format
msgid "{name} takes {damage} damage." msgid "{name} takes {damage} damage."
msgstr "{name} recibe {damage} daño." msgstr "{name} recibe {damage} daño."
#: squirrelbattle/interfaces.py:783 #: squirrelbattle/interfaces.py:784
#, python-brace-format #, python-brace-format
msgid "{name} dies." msgid "{name} dies."
msgstr "{name} se muere." msgstr "{name} se muere."
#: squirrelbattle/interfaces.py:817 #: squirrelbattle/interfaces.py:818
#, python-brace-format #, python-brace-format
msgid "{entity} said: {message}" msgid "{entity} said: {message}"
msgstr "{entity} dijo : {message}" msgstr "{entity} dijo : {message}"

View File

@ -12,7 +12,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: squirrelbattle 3.14.1\n" "Project-Id-Version: squirrelbattle 3.14.1\n"
"Report-Msgid-Bugs-To: squirrel-battle@crans.org\n" "Report-Msgid-Bugs-To: squirrel-battle@crans.org\n"
"POT-Creation-Date: 2021-01-10 20:35+0100\n" "POT-Creation-Date: 2021-01-10 21:14+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -199,17 +199,17 @@ msgstr "C'est un coup critique !"
msgid "{name} hits {opponent}." msgid "{name} hits {opponent}."
msgstr "{name} frappe {opponent}." msgstr "{name} frappe {opponent}."
#: squirrelbattle/interfaces.py:781 #: squirrelbattle/interfaces.py:782
#, python-brace-format #, python-brace-format
msgid "{name} takes {damage} damage." msgid "{name} takes {damage} damage."
msgstr "{name} prend {damage} dégâts." msgstr "{name} prend {damage} dégâts."
#: squirrelbattle/interfaces.py:783 #: squirrelbattle/interfaces.py:784
#, python-brace-format #, python-brace-format
msgid "{name} dies." msgid "{name} dies."
msgstr "{name} meurt." msgstr "{name} meurt."
#: squirrelbattle/interfaces.py:817 #: squirrelbattle/interfaces.py:818
#, python-brace-format #, python-brace-format
msgid "{entity} said: {message}" msgid "{entity} said: {message}"
msgstr "{entity} a dit : {message}" msgstr "{entity} a dit : {message}"