Half_physical_damage 05

- [fixed in trunk] Jumping/Newton's-Thirding into something solid
- [fixed in trunk] Being hit by Mjollnir on the return
- [fixed in trunk] Contaminated or boiling water from a sink
- [fixed in trunk] Falling on a sink while levitating
- [fixed in trunk, fire only] Any passive attack
- [fixed in trunk] Zapping yourself with a wand, horn or spell
- [fixed in trunk] Burning (un)holy water
- [fixed in trunk] Thrown potion (bottle)
- [fixed in trunk] Bumping head on ceiling by cursed levitation
- [fixed in trunk] Exploding rings and wands (under all circumstances)
- [fixed in trunk] Stinking cloud damage
- [fixed in trunk] Sitting in a spiked pit, in lava
- [fixed in trunk] Exploding spellbooks
- [fixed in trunk] Falling off or failing to mount a steed
- [fixed in trunk] Falling into a (spiked) pit
- [fixed in trunk] Land mine explosion
- [fixed in trunk] Fire traps
This commit is contained in:
nethack.allison
2003-10-21 23:45:11 +00:00
parent d3316e0436
commit cdf982e478
13 changed files with 69 additions and 28 deletions

View File

@@ -474,7 +474,8 @@ peffects(otmp)
you_unwere(FALSE);
u.ulycn = NON_PM; /* cure lycanthropy */
}
losehp(d(2,6), "potion of holy water", KILLED_BY_AN);
losehp(Maybe_Half_Phys(d(2,6)),
"potion of holy water", KILLED_BY_AN);
} else if(otmp->cursed) {
You_feel("quite proud of yourself.");
healup(d(2,6),0,0,0);
@@ -493,7 +494,8 @@ peffects(otmp)
} else {
if(u.ualign.type == A_LAWFUL) {
pline("This burns like acid!");
losehp(d(2,6), "potion of unholy water",
losehp(Maybe_Half_Phys(d(2,6)),
"potion of unholy water",
KILLED_BY_AN);
} else
You_feel("full of dread.");
@@ -835,10 +837,11 @@ peffects(otmp)
&& (u.ux != sstairs.sx || u.uy != sstairs.sy || !sstairs.up)
&& (!xupladder || u.ux != xupladder || u.uy != yupladder)
) {
int dmg = uarmh ? 1 : rnd(10);
You("hit your %s on the %s.",
body_part(HEAD),
ceiling(u.ux,u.uy));
losehp(uarmh ? 1 : rnd(10),
losehp(Maybe_Half_Phys(dmg),
"colliding with the ceiling",
KILLED_BY);
} else (void) doup();
@@ -976,7 +979,7 @@ boolean your_fault;
distance = 0;
pline_The("%s crashes on your %s and breaks into shards.",
botlnam, body_part(HEAD));
losehp(rnd(2), "thrown potion", KILLED_BY_AN);
losehp(Maybe_Half_Phys(rnd(2)), "thrown potion", KILLED_BY_AN);
} else {
distance = distu(mon->mx,mon->my);
if (!cansee(mon->mx,mon->my)) pline("Crash!");