forked from github/server
"Verhalten fliehender Einheiten auf Ozean" disable flight from ships on ocean
This commit is contained in:
parent
b212f0b666
commit
3ea0d50caf
1 changed files with 9 additions and 1 deletions
|
@ -3882,7 +3882,15 @@ battle_flee(battle * b)
|
||||||
int runners = 0;
|
int runners = 0;
|
||||||
/* Flucht nicht bei mehr als 600 HP. Damit Wyrme tötbar bleiben. */
|
/* Flucht nicht bei mehr als 600 HP. Damit Wyrme tötbar bleiben. */
|
||||||
int runhp = MIN(600,(int)(0.9+unit_max_hp(u)*hpflee(u->status)));
|
int runhp = MIN(600,(int)(0.9+unit_max_hp(u)*hpflee(u->status)));
|
||||||
if (fval(u->race, RCF_UNDEAD) || u->race == new_race[RC_SHADOWKNIGHT]) continue;
|
|
||||||
|
if (u->ship && fval(u->region->terrain, SEA_REGION)) {
|
||||||
|
/* keine Flucht von Schiffen auf hoher See */
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (fval(u->race, RCF_UNDEAD) || u->race == new_race[RC_SHADOWKNIGHT]) {
|
||||||
|
/* Untote fliehen nicht. Warum eigentlich? */
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
dt.fighter = fig;
|
dt.fighter = fig;
|
||||||
#ifndef SIMPLE_ESCAPE
|
#ifndef SIMPLE_ESCAPE
|
||||||
|
|
Loading…
Reference in a new issue