]> granicus.if.org Git - nethack/commitdiff
fix #H4404 - Orc wizard vs ring of poison resist
authorPatR <rankin@nethack.org>
Fri, 17 Jun 2016 23:30:50 +0000 (16:30 -0700)
committerPatR <rankin@nethack.org>
Fri, 17 Jun 2016 23:30:50 +0000 (16:30 -0700)
Orcs are innately poison resistant, so orcish wizard's random ring
shouldn't be poison resistance.  Presumeably an orc who is bright
enough to become a wizard is not so dumb as to bring a useless ring
with him/her into the dungeon....

doc/fixes36.1
src/u_init.c

index 6affc4c59945279482cf64d5afe8aefe70a7efba..dc7db5c3b3e3e1320ae53d654700409ddad39b38 100644 (file)
@@ -298,7 +298,8 @@ if blind and no gloves, using 'm<dir>' to move and then 'e' could be used to
 it's cannabilism for a were<foo> to eat a <foo> corpse
 conduct: wishing for an artifact and not getting it because it already exists
        counts as wishing for an artifact, just like when not getting it
-       becuase of quest restrictions or too many artifacts in play does
+       because of quest restrictions or too many artifacts in play does
+avoid ring of poison resistance as starting equipment for orcish wizard
 
 
 Fixes to Post-3.6.0 Problems that Were Exposed Via git Repository
index 34e3b4cc171bf961f088a176b8e23fd239ac10af..3dadf09d04036fd58cb4362e36d8c41085e0d20c 100644 (file)
@@ -1013,6 +1013,8 @@ register struct trobj *trop;
                    || otyp == RIN_AGGRAVATE_MONSTER
                    || otyp == RIN_HUNGER
                    || otyp == WAN_NOTHING
+                   /* orcs start with poison resistance */
+                   || (otyp == RIN_POISON_RESISTANCE && Race_if(PM_ORC))
                    /* Monks don't use weapons */
                    || (otyp == SCR_ENCHANT_WEAPON && Role_if(PM_MONK))
                    /* wizard patch -- they already have one */