U442 - scroll of charging

<Someone> suggested a scroll to counteract an unknown scroll of charging
that had negative effects.  Scroll of punishment already costs the same,
so that unknown behavior is already covered.  Plus, a cursed scroll of
charging already has negative effects, except in the case where the player
was confused where no negative effect from reading a cursed scroll of
charging occured.  Added such an effect (since the curse should still cause
something bad, even though the reader is confused), to drain the player's
energy.
This commit is contained in:
cohrs
2003-05-17 21:12:16 +00:00
parent ddb2f60171
commit 775e4e0345
2 changed files with 11 additions and 5 deletions

View File

@@ -26,6 +26,7 @@ dust vortex-induced blindness should kick in immediately when blindfold
is removed or glop is wiped off
prayer/unicorn-horn won't fix blindness while still engulfed in a dust
vortex since it will just return immediately
being confused and reading cursed scroll of charging drains your energy
Platform- and/or Interface-Specific Fixes

View File

@@ -1060,11 +1060,16 @@ register struct obj *sobj;
return(1);
case SCR_CHARGING:
if (confused) {
You_feel("charged up!");
if (u.uen < u.uenmax)
u.uen = u.uenmax;
else
u.uen = (u.uenmax += d(5,4));
if (sobj->cursed) {
You_feel("discharged.");
u.uen = 0;
} else {
You_feel("charged up!");
if (u.uen < u.uenmax)
u.uen = u.uenmax;
else
u.uen = (u.uenmax += d(5,4));
}
flags.botl = 1;
break;
}