comparison 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
comparison
equal deleted inserted replaced
250:d08f19d529eb 251:e7862a021609
146 player.t_flags &= ~ISHASTE; 146 player.t_flags &= ~ISHASTE;
147 extinguish(nohaste); 147 extinguish(nohaste);
148 } 148 }
149 else { 149 else {
150 player.t_flags |= ISHASTE; 150 player.t_flags |= ISHASTE;
151 if (potion) 151 if (potion) {
152 fuse(nohaste, TRUE, roll(10,10)); 152 fuse(nohaste, TRUE, roll(10,10));
153 else 153 msg("You feel yourself moving much faster.");
154 }
155 else {
154 fuse(nohaste, TRUE, roll(40,20)); 156 fuse(nohaste, TRUE, roll(40,20));
157 msg("You find yourself moving much faster.");
158 }
155 } 159 }
156 } 160 }
157 161
158 /* 162 /*
159 * getpdex: 163 * getpdex: