forked from github/server
parent
1b676f3200
commit
2437714c65
|
@ -930,6 +930,7 @@ plan_monsters(void)
|
|||
/* Ab hier nur noch Befehle für NPC-Einheiten. */
|
||||
if (u->faction->no != MONSTER_FACTION) continue;
|
||||
|
||||
u->status = ST_AGGRO; /* all monsters fight like crazy */
|
||||
/* Monster bekommen jede Runde ein paar Tage Wahrnehmung dazu */
|
||||
produceexp(u, SK_OBSERVATION, u->number);
|
||||
|
||||
|
|
|
@ -258,13 +258,13 @@ ridingcapacity(unit * u)
|
|||
int
|
||||
walkingcapacity(const struct unit * u)
|
||||
{
|
||||
int n, tmp, personen, pferde, pferde_fuer_wagen;
|
||||
int n, tmp, personen, pferde_fuer_wagen;
|
||||
int wagen, wagen_ohne_pferde, wagen_mit_pferden, wagen_mit_trollen;
|
||||
/* Das Gewicht, welches die Pferde tragen, plus das Gewicht, welches
|
||||
* die Leute tragen */
|
||||
|
||||
pferde = get_item(u, I_HORSE);
|
||||
unicorns = get_item(u, I_UNICORN);
|
||||
int pferde = get_item(u, I_HORSE);
|
||||
int unicorns = get_item(u, I_UNICORN);
|
||||
if (fval(u->race, RCF_HORSE)) {
|
||||
pferde += u->number;
|
||||
personen = 0;
|
||||
|
|
|
@ -830,7 +830,7 @@ u_setfaction(unit * u, faction * f)
|
|||
if (u->nextF) u->nextF->prevF = u;
|
||||
u->prevF = NULL;
|
||||
|
||||
u->faction = f;
|
||||
u->faction = f;
|
||||
if (cnt && f) {
|
||||
set_number(u, cnt);
|
||||
if (playerrace(u->race)) {
|
||||
|
|
Loading…
Reference in New Issue