From: Pasi Kallinen Date: Sat, 21 Mar 2015 11:40:07 +0000 (+0200) Subject: Make HoOA alignment change depend on object ID X-Git-Tag: NetHack-3.6.0_RC01~577 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fcc030f37c07aacef9251ad62b2f91fecfe8f0c;p=nethack Make HoOA alignment change depend on object ID The same Helm of opposite alignment will always make the same alignment change for neutrals. --- diff --git a/src/do_wear.c b/src/do_wear.c index 9925ceaf0..39d3b6c3f 100644 --- a/src/do_wear.c +++ b/src/do_wear.c @@ -391,7 +391,7 @@ Helmet_on(VOID_ARGS) properties, including levitation; uarmh could get dropped or destroyed here */ uchangealign((u.ualign.type != A_NEUTRAL) ? -u.ualign.type : - rn2(2) ? A_CHAOTIC : A_LAWFUL, 1); + (uarmh->o_id % 2) ? A_CHAOTIC : A_LAWFUL, 1); /* makeknown(uarmh->otyp); -- moved below, after xname() */ /*FALLTHRU*/ case DUNCE_CAP: