1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-29 17:02:25 +01:00

Positive alignment record paritally protects against punishment spell

This commit is contained in:
Chris-plus-alphanumericgibberish 2015-05-08 04:39:09 -04:00
parent 21deb44368
commit 20a71612a8

View file

@ -1021,19 +1021,21 @@ int spellnum;
dmg = 0;
break;
stop_occupation();
case PUNISH:
if (!Punished) {
punish((struct obj *)0);
if (mtmp && is_prince(mtmp->data)) uball->owt += 160;
} else {
Your("iron ball gets heavier!");
if (mtmp && is_prince(mtmp->data)) uball->owt += 240;
else uball->owt += 160;
}
dmg = 0;
stop_occupation();
case PUNISH:
if(u.ualign.record <= 1 || !rn2(min(u.ualign.record,20))){
if (!Punished) {
punish((struct obj *)0);
if (mtmp && is_prince(mtmp->data)) uball->owt += 160;
} else {
Your("iron ball gets heavier!");
if (mtmp && is_prince(mtmp->data)) uball->owt += 240;
else uball->owt += 160;
}
} else Your("sins do not demand punishment.");
dmg = 0;
stop_occupation();
break;
case EARTHQUAKE:
case EARTHQUAKE:
pline_The("entire %s is shaking around you!",
In_endgame(&u.uz) ? "plane" : "dungeon");
/* Quest nemesis maledictions */