Fix the perpetual haste cheat.

Rogue V3 allowed the player to gain perpetual haste by quaffing a
potion of haste while already hasted.  This is supposed to remove the
haste effect and cause temporary paralysis.

Super-Rogue removed haste correctly, but gave confusing messages.
This commit is contained in:
John "Elwin" Edwards 2017-01-28 11:45:36 -05:00
parent 714bad8c3c
commit c194ec3dc9
6 changed files with 13 additions and 8 deletions

View file

@ -148,10 +148,14 @@ add_haste(bool potion)
}
else {
player.t_flags |= ISHASTE;
if (potion)
if (potion) {
fuse(nohaste, TRUE, roll(10,10));
else
msg("You feel yourself moving much faster.");
}
else {
fuse(nohaste, TRUE, roll(40,20));
msg("You find yourself moving much faster.");
}
}
}