forked from github/server
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:
parent
78f4dfac1d
commit
440d78596c
|
@ -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"],
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue