of their race/species; likewise, rogues know all daggers
if the move counter ever reaches 1000000000, end the game
knights get no metal armor penalty for clerical spells
+change touch of death from instadeath to maxhp reduction and damage
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
/* ### mcastu.c ### */
extern int castmu(struct monst *, struct attack *, boolean, boolean);
+extern void touch_of_death(void);
extern int buzzmu(struct monst *, struct attack *);
/* ### mdlib.c ### */
return dmg;
}
+void
+touch_of_death(void)
+{
+ int dmg = 50 + d(8, 6);
+ int drain = dmg / 2;
+
+ You_feel("drained...");
+
+ if (drain >= u.uhpmax) {
+ g.killer.format = KILLED_BY_AN;
+ Strcpy(g.killer.name, "touch of death");
+ done(DIED);
+ } else {
+ u.uhpmax -= drain;
+ losehp(dmg, "touch of death", KILLED_BY_AN);
+ }
+}
+
/* monster wizard and cleric spellcasting functions */
/*
If dmg is zero, then the monster is not casting at you.
if (Hallucination) {
You("have an out of body experience.");
} else {
- g.killer.format = KILLED_BY_AN;
- Strcpy(g.killer.name, "touch of death");
- done(DIED);
+ touch_of_death();
}
} else {
if (Antimagic) {