Skip to content

Commit

Permalink
Monsters.c: Fix chance of losing track of player
Browse files Browse the repository at this point in the history
The probability was 97% instead of the desired 3%.
  • Loading branch information
tmewett committed Sep 3, 2019
1 parent 696234b commit 87464bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brogue/Monsters.c
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ boolean awareOfTarget(creature *observer, creature *target) {
} else if (observer->creatureState == MONSTER_TRACKING_SCENT) {
// already aware of the target, lose track 3% of the time if outside of stealth range.
if (perceivedDistance > awareness) {
retval = rand_percent(3);
retval = rand_percent(97);
} else {
retval = true;
}
Expand Down

0 comments on commit 87464bd

Please sign in to comment.