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:
parent
714bad8c3c
commit
c194ec3dc9
6 changed files with 13 additions and 8 deletions
|
|
@ -197,7 +197,6 @@ quaff(void)
|
|||
when P_HASTE:
|
||||
if (!curse) {
|
||||
add_haste(TRUE);
|
||||
msg("You feel yourself moving much faster.");
|
||||
p_know[P_HASTE] = TRUE;
|
||||
}
|
||||
when P_INVINC:
|
||||
|
|
|
|||
|
|
@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,6 @@ ring_on(void)
|
|||
}
|
||||
else {
|
||||
add_haste(FALSE);
|
||||
msg("You find yourself moving must faster.");
|
||||
}
|
||||
when R_GIANT: /* to 24 */
|
||||
him->s_ef.a_str = MAXSTR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue