forked from github/server
- Bewacher hielten getarnte Einheiten mit zu hoher Chance auf.
This commit is contained in:
parent
913ca8d74c
commit
ff472696b2
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue