Dragons re using the new LOOT command.

Fixing the income message (missing ")").
This commit is contained in:
Enno Rehling 2014-11-02 11:10:26 +01:00
parent 5dc9362d71
commit ecc3b1b441
3 changed files with 5 additions and 3 deletions

View File

@ -2754,7 +2754,7 @@
<arg name="wanted" type="int"/> <arg name="wanted" type="int"/>
<arg name="mode" type="int"/> <arg name="mode" type="int"/>
</type> </type>
<text locale="de">"$unit($unit) verdient$if($eq($mode,4)," am Handel","") in $region($region) $int($amount)$if($eq($wanted,$amount),""," statt $int($wanted)") Silber$if($eq($mode,1)," durch Unterhaltung",$if($eq($mode,2)," durch Steuern",$if($eq($mode,3)," durch Handel",$if($eq($mode,5)," durch Diebstahl",$if($eq($mode,6)," durch Zauberei",$if($eq($mode,7)," durch Pluendern","")))))."</text> <text locale="de">"$unit($unit) verdient$if($eq($mode,4)," am Handel","") in $region($region) $int($amount)$if($eq($wanted,$amount),""," statt $int($wanted)") Silber$if($eq($mode,1)," durch Unterhaltung",$if($eq($mode,2)," durch Steuern",$if($eq($mode,3)," durch Handel",$if($eq($mode,5)," durch Diebstahl",$if($eq($mode,6)," durch Zauberei",$if($eq($mode,7)," durch Plündern",""))))))."</text>
<text locale="fr">"$unit($unit) earns $int($amount)$if($eq($wanted,$amount),""," of $int($wanted)") in $region($region)."</text> <text locale="fr">"$unit($unit) earns $int($amount)$if($eq($wanted,$amount),""," of $int($wanted)") in $region($region)."</text>
<text locale="en">"$unit($unit) earns $int($amount)$if($eq($wanted,$amount),""," of $int($wanted)") in $region($region)."</text> <text locale="en">"$unit($unit) earns $int($amount)$if($eq($wanted,$amount),""," of $int($wanted)") in $region($region)."</text>
</message> </message>

View File

@ -3444,7 +3444,6 @@ void produce(struct region *r)
request workers[MAX_WORKERS]; request workers[MAX_WORKERS];
request *taxorders, *lootorders, *sellorders, *stealorders, *buyorders; request *taxorders, *lootorders, *sellorders, *stealorders, *buyorders;
unit *u; unit *u;
int todo;
static int rule_autowork = -1; static int rule_autowork = -1;
bool limited = true; bool limited = true;
request *nextworker = workers; request *nextworker = workers;
@ -3484,6 +3483,7 @@ void produce(struct region *r)
for (u = r->units; u; u = u->next) { for (u = r->units; u; u = u->next) {
order *ord; order *ord;
bool trader = false; bool trader = false;
keyword_t todo;
if (u_race(u) == get_race(RC_SPELL) || fval(u, UFL_LONGACTION)) if (u_race(u) == get_race(RC_SPELL) || fval(u, UFL_LONGACTION))
continue; continue;

View File

@ -26,6 +26,7 @@
#include "give.h" #include "give.h"
#include "monster.h" #include "monster.h"
#include "laws.h" #include "laws.h"
#include "keyword.h"
/* triggers includes */ /* triggers includes */
#include <triggers/removecurse.h> #include <triggers/removecurse.h>
@ -173,7 +174,7 @@ static order *get_money_for_dragon(region * r, unit * u, int wanted)
/* 5% chance, dass der drache aus einer laune raus attackiert */ /* 5% chance, dass der drache aus einer laune raus attackiert */
if (attack_chance <= 0.0 || chance(1.0 - u_race(u)->aggression)) { if (attack_chance <= 0.0 || chance(1.0 - u_race(u)->aggression)) {
/* Drachen haben in E3 und E4 keine Einnahmen. Neuer Befehl Pluendern erstmal nur fuer Monster?*/ /* Drachen haben in E3 und E4 keine Einnahmen. Neuer Befehl Pluendern erstmal nur fuer Monster?*/
return create_order(K_TAX, default_locale, NULL); return create_order(K_LOOT, default_locale, NULL);
} }
} }
@ -866,6 +867,7 @@ void plan_monsters(faction * f)
} }
if (long_order) { if (long_order) {
addlist(&u->orders, long_order); addlist(&u->orders, long_order);
// u->thisorder = long_order;
} }
} }
} }