Mercurial > hg > early-roguelike
comparison rogue3/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 | 527e2150eaf0 |
children |
comparison
equal
deleted
inserted
replaced
250:d08f19d529eb | 251:e7862a021609 |
---|---|
156 pstats.s_hpt = ++max_hp; | 156 pstats.s_hpt = ++max_hp; |
157 msg("You begin to feel much better."); | 157 msg("You begin to feel much better."); |
158 p_know[P_XHEAL] = TRUE; | 158 p_know[P_XHEAL] = TRUE; |
159 sight(); | 159 sight(); |
160 when P_HASTE: | 160 when P_HASTE: |
161 add_haste(TRUE); | 161 if (add_haste(TRUE)) |
162 msg("You feel yourself moving much faster."); | 162 msg("You feel yourself moving much faster."); |
163 p_know[P_HASTE] = TRUE; | 163 p_know[P_HASTE] = TRUE; |
164 when P_RESTORE: | 164 when P_RESTORE: |
165 msg("Hey, this tastes great. It make you feel warm all over."); | 165 msg("Hey, this tastes great. It make you feel warm all over."); |
166 if (pstats.s_str.st_str < max_stats.s_str.st_str || | 166 if (pstats.s_str.st_str < max_stats.s_str.st_str || |
167 (pstats.s_str.st_str == 18 && | 167 (pstats.s_str.st_str == 18 && |