comparison srogue/rings.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 e52a8a7ad4c5
comparison
equal deleted inserted replaced
250:d08f19d529eb 251:e7862a021609
82 obj->o_ac = 0; 82 obj->o_ac = 0;
83 setoflg(obj,ISCURSED); 83 setoflg(obj,ISCURSED);
84 } 84 }
85 else { 85 else {
86 add_haste(FALSE); 86 add_haste(FALSE);
87 msg("You find yourself moving must faster.");
88 } 87 }
89 when R_GIANT: /* to 24 */ 88 when R_GIANT: /* to 24 */
90 him->s_ef.a_str = MAXSTR; 89 him->s_ef.a_str = MAXSTR;
91 when R_ADDSTR: 90 when R_ADDSTR:
92 chg_abil(STR,obj->o_ac,FROMRING); 91 chg_abil(STR,obj->o_ac,FROMRING);