- Bewacher hielten getarnte Einheiten mit zu hoher Chance auf.
This commit is contained in:
Enno Rehling 2005-02-12 13:52:22 +00:00
parent 913ca8d74c
commit ff472696b2
1 changed files with 1 additions and 1 deletions

View File

@ -808,7 +808,7 @@ bewegung_blockiert_von(unit * reisender, region * r)
if (!contact && guard) { if (!contact && guard) {
double prob = 0.3; /* 30% base chance */ double prob = 0.3; /* 30% base chance */
prob += 0.1 * (perception - eff_stealth(reisender, r)); prob += 0.1 * (perception - eff_stealth(reisender, r));
prob += 0.1 * max(guard->number, get_item(guard, I_AMULET_OF_TRUE_SEEING)); prob += 0.1 * min(guard->number, get_item(guard, I_AMULET_OF_TRUE_SEEING));
if (chance(prob)) { if (chance(prob)) {
return guard; return guard;