Skip to content

Commit

Permalink
Add randomness to HoOA erinyes summoning
Browse files Browse the repository at this point in the history
When not on Astral, make it a roll based on alignment abuse whether an
erinys is summoned.  Also make helm of opposite alignment use contribute
to alignment abuse, so that repeated uses to attempt to clear erinyes
before astral will make them stronger.
  • Loading branch information
entrez authored and PatR committed Jan 11, 2024
1 parent 69b2523 commit cd04780
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/attrib.c
Expand Up @@ -1259,9 +1259,11 @@ uchangealign(int newalign,
/* putting on or taking off a helm of opposite alignment */
u.ualign.type = (aligntyp) newalign;
if (reason == 1) {
adjalign(-7); /* for abuse -- record will be cleared shortly */
Your("mind oscillates %s.", Hallucination ? "wildly" : "briefly");
make_confused(rn1(2, 3), FALSE);
summon_furies(Is_astralevel(&u.uz) ? 0 : 1);
if (Is_astralevel(&u.uz) || ((unsigned) rn2(50) < u.ualign.abuse))
summon_furies(Is_astralevel(&u.uz) ? 0 : 1);
/* don't livelog taking it back off */
livelog_printf(LL_ALIGNMENT, "used a helm to turn %s",
aligns[1 - newalign].adj);
Expand Down

0 comments on commit cd04780

Please sign in to comment.