Skip to content

Commit

Permalink
remove old battle debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
ennorehling committed Jan 23, 2025
1 parent 9f4ee6e commit 54acb3c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 25 deletions.
6 changes: 0 additions & 6 deletions res/core/messages.xml
Original file line number Diff line number Diff line change
Expand Up @@ -530,12 +530,6 @@
<arg name="amount" type="int"/>
</type>
</message>
<message name="battle_critical" section="battle">
<type>
<arg name="unit" type="unit"/>
<arg name="index" type="int"/>
</type>
</message>
<message name="teach_asgood" section="errors">
<type>
<arg name="unit" type="unit"/>
Expand Down
3 changes: 0 additions & 3 deletions res/translations/messages.de.po
Original file line number Diff line number Diff line change
Expand Up @@ -1036,9 +1036,6 @@ msgstr "\"Achtung: $faction($faction) hat seit $int($turns) Wochen keine Züge e
msgid "arena_leave_fail"
msgstr "\"Der Versuch, die Greifenschwingen zu benutzen, schlug fehl. $unit($unit) konnte die Ebene der Herausforderung nicht verlassen.\""

msgid "battle_critical"
msgstr "\"$int36($unit.id($unit))/$int($index) erzielt einen kritischen Treffer.\""

msgid "error_spell_on_ship_already"
msgstr "\"$unit($unit) in $region($region): '$order($command)' - Auf $ship($ship) liegt bereits ein Zauber.\""

Expand Down
3 changes: 0 additions & 3 deletions res/translations/messages.en.po
Original file line number Diff line number Diff line change
Expand Up @@ -1036,9 +1036,6 @@ msgstr "\"Warning: $faction($faction) has not been sending in orders for $int($t
msgid "arena_leave_fail"
msgstr "\"The attempt to use wings of the gryphon failed. $unit($unit) could not leave the Plane of Challenge.\""

msgid "battle_critical"
msgstr "\"$int36($unit.id($unit))/$int($index) does critical damage.\""

msgid "error_spell_on_ship_already"
msgstr "\"$unit($unit) in $region($region): '$order($command)' - There is already a spell on $ship($ship).\""

Expand Down
13 changes: 0 additions & 13 deletions src/reports.c
Original file line number Diff line number Diff line change
Expand Up @@ -1852,18 +1852,6 @@ static void eval_curse(struct opstack **stack, const void *userdata)
opush(stack, var);
}

static void eval_unitid(struct opstack **stack, const void *userdata)
{ /* unit -> int */
const struct faction *f = (const struct faction *)userdata;
const struct unit *u = (const struct unit *)opop(stack).v;
const char *c = u ? unit_getname(u) : LOC(f->locale, "an_unknown_unit");
size_t len = strlen(c);
variant var;

var.v = strcpy(balloc(len + 1), c);
opush(stack, var);
}

static void eval_unitsize(struct opstack **stack, const void *userdata)
{ /* unit -> int */
const struct unit *u = (const struct unit *)opop(stack).v;
Expand Down Expand Up @@ -2354,7 +2342,6 @@ void register_reports(void)
add_function("ship", &eval_ship);
add_function("unit", &eval_unit);
add_function("unit.dative", &eval_unit_dative);
add_function("unit.id", &eval_unitid);
add_function("unit.size", &eval_unitsize);
add_function("building", &eval_building);
add_function("skill", &eval_skill);
Expand Down

0 comments on commit 54acb3c

Please sign in to comment.