Mercurial > hg > early-roguelike
diff srogue/pstats.c @ 251:e7862a021609
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.
author | John "Elwin" Edwards |
---|---|
date | Sat, 28 Jan 2017 11:45:36 -0500 |
parents | b49d8b963df3 |
children | 057c5114e244 |
line wrap: on
line diff
--- a/srogue/pstats.c Wed Jul 20 20:44:41 2016 -0400 +++ b/srogue/pstats.c Sat Jan 28 11:45:36 2017 -0500 @@ -148,10 +148,14 @@ } 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."); + } } }