comparison srogue/potions.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 94a0d9dd5ce1
children
comparison
equal deleted inserted replaced
250:d08f19d529eb 251:e7862a021609
195 sight(FALSE); 195 sight(FALSE);
196 } 196 }
197 when P_HASTE: 197 when P_HASTE:
198 if (!curse) { 198 if (!curse) {
199 add_haste(TRUE); 199 add_haste(TRUE);
200 msg("You feel yourself moving much faster.");
201 p_know[P_HASTE] = TRUE; 200 p_know[P_HASTE] = TRUE;
202 } 201 }
203 when P_INVINC: 202 when P_INVINC:
204 if (!curse) { 203 if (!curse) {
205 int time = rnd(400) + 350; 204 int time = rnd(400) + 350;