Wyrms are solitary creatures.

This commit is contained in:
Enno Rehling 2005-11-18 21:02:29 +00:00
parent 2380573d77
commit 83b2feffa6

View file

@ -843,6 +843,18 @@ plan_dragon(unit * u)
move |= (r->land==0 || r->land->money==0); /* when no money, move */ move |= (r->land==0 || r->land->money==0); /* when no money, move */
} }
move |= chance(0.04); /* 4% chance to change your mind */ move |= chance(0.04); /* 4% chance to change your mind */
if (u->race==new_race[RC_WYRM] && !move) {
unit * u2;
for (u2=r->units;u2;u2=u2->next) {
/* wyrme sind einzelgänger */
if (u2!=u && u2->race==u->race && chance(0.5)) {
move = true;
break;
}
}
}
if (move) { if (move) {
/* dragon gets bored and looks for a different place to go */ /* dragon gets bored and looks for a different place to go */
ta = set_new_dragon_target(u, u->region, DRAGON_RANGE); ta = set_new_dragon_target(u, u->region, DRAGON_RANGE);