Add missing keywords, fix disappearing units.

https://bugs.eressea.de/view.php?id=2051
. The orders PASSWORT, FAHRE, KÄMPFE were not recognized (new imperative syntax).
. Added backwards compatibility for FIGHT (now COMBAT).

https://bugs.eressea.de/view.php?id=2050
. units were always giving away ALL persons, not the number in their GIVE command.
This commit is contained in:
Enno Rehling 2014-12-12 13:32:21 +01:00
parent 78f4dfac1d
commit 440d78596c
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,8 @@
{
"keywords": {
"en" : {
"combat": [ "COMBAT", "FIGHT" ]
},
"de": {
"//" : "//",
"banner": "BANNER",
@ -14,7 +17,7 @@
"guard": ["BEWACHE", "BEWACHEN"],
"message": "BOTSCHAFT",
"end": "ENDE",
"ride": ["REITE", "REITEN"],
"ride": ["FAHRE", "FAHREN"],
"number": "NUMMER",
"follow": ["FOLGE","FOLGEN"],
"research": ["FORSCHE", "FORSCHEN"],
@ -29,7 +32,7 @@
"make": ["MACHE", "MACHEN"],
"maketemp": ["MACHE TEMP", "MACHETEMP"],
"move" : "NACH",
"password" : "PASSWORD",
"password" : "PASSWORT",
"loot" : ["PLÜNDERE", "PLÜNDERN"],
"recruit": ["REKRUTIERE", "REKRUTIEREN"],
"reserve": ["RESERVIERE", "RESERVIEREN"],

View File

@ -426,7 +426,6 @@ void give_unit(unit * u, unit * u2, order * ord)
if (u2 == NULL) {
message *msg;
if (fval(r->terrain, SEA_REGION)) {
/* TODO: why is this here, but the unit does not actually seem to lose any men? */
msg = disband_men(u->number, u, ord);
if (msg) {
ADDMSG(&u->faction->msgs, msg);
@ -755,7 +754,7 @@ void give_cmd(unit * u, order * ord)
msg_feedback(u, ord, "race_noregroup", "race", u_race(u)));
return;
}
msg = u2 ? give_men(u->number, u, u2, ord) : disband_men(u->number, u, ord);
msg = u2 ? give_men(n, u, u2, ord) : disband_men(n, u, ord);
if (msg) {
ADDMSG(&u->faction->msgs, msg);
}