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:
parent
21deb44368
commit
20a71612a8
1 changed files with 14 additions and 12 deletions
26
src/mcastu.c
26
src/mcastu.c
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue