Skip to content

Commit

Permalink
Vampirics never start with an amulet of drain resistance or a ring of…
Browse files Browse the repository at this point in the history
… regeneration (they have them from XP 1).
  • Loading branch information
elunna committed Sep 24, 2023
1 parent 9b1c631 commit 9da4154
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/u_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -2030,8 +2030,11 @@ register struct trobj *origtrop;
&& (otyp == RIN_FIRE_RESISTANCE
|| otyp == RIN_COLD_RESISTANCE))

/* Necromancers start with drain res */
|| (otyp == AMULET_OF_DRAIN_RESISTANCE && Role_if(PM_NECROMANCER))
/* Necromancers/vampirics start with drain res */
|| (otyp == AMULET_OF_DRAIN_RESISTANCE
&& (Role_if(PM_NECROMANCER) || Race_if(PM_VAMPIRIC)))
/* vampirics start with regeneration */
|| (otyp == RIN_REGENERATION && Race_if(PM_VAMPIRIC))
/* orcs start with poison resistance */
|| (otyp == RIN_POISON_RESISTANCE && Race_if(PM_ORC))
/* Monks don't use weapons */
Expand Down

0 comments on commit 9da4154

Please sign in to comment.