Skip to content

Commit

Permalink
Vampiric shopkeepers.
Browse files Browse the repository at this point in the history
  • Loading branch information
elunna committed Oct 26, 2023
1 parent 5dc2cd7 commit 1261fe0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/shknam.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,11 +897,12 @@ int shp_indx;
/* wands and potions also similar... */
case WAND_CLASS:
case POTION_CLASS:
switch (rnd(4)) {
switch (rnd(8)) {
case 1: srace = PM_ELF; break;
case 2: srace = PM_GNOME; break;
case 3: srace = PM_NYMPH; break;
case 4: srace = PM_HUMAN; break;
default: srace = PM_VAMPIRIC; break;
}
break;
case TOOL_CLASS:
Expand All @@ -920,11 +921,12 @@ int shp_indx;
/* and scrolls and books fall to spellcasters */
case SCROLL_CLASS:
case SPBOOK_CLASS:
switch (rnd(4)) {
switch (rnd(5)) {
case 1: srace = PM_ILLITHID; break;
case 2: srace = PM_HUMAN; break;
case 3: srace = PM_GNOME; break;
case 4: srace = PM_ELF; break;
case 5: srace = PM_VAMPIRIC; break;
}
break;
default:
Expand Down

0 comments on commit 1261fe0

Please sign in to comment.