Skip to content

Commit

Permalink
Cartomancer gets slightly different item generation odds. Since 50% o…
Browse files Browse the repository at this point in the history
…f the monsters a cartomancer kills will not leave a corpse, I weighted the odds a bit more in favor of food and less in some other categories. This may need revisiting in the future after some playtesting.
  • Loading branch information
elunna committed Nov 17, 2023
1 parent 8bb0899 commit 31cd543
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/mkobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ static const struct icp mkobjprobs[] = { { 10, WEAPON_CLASS },
{ 3, RING_CLASS },
{ 1, AMULET_CLASS } };

static const struct icp cartprobs[] = { { 8, WEAPON_CLASS },
{ 10, ARMOR_CLASS },
{ 30, FOOD_CLASS },
{ 8, TOOL_CLASS },
{ 8, GEM_CLASS },
{ 12, POTION_CLASS },
{ 12, SCROLL_CLASS },
{ 4, SPBOOK_CLASS },
{ 4, WAND_CLASS },
{ 3, RING_CLASS },
{ 1, AMULET_CLASS } };

static const struct icp boxiprobs[] = { { 18, GEM_CLASS },
{ 15, FOOD_CLASS },
{ 18, POTION_CLASS },
Expand Down Expand Up @@ -256,7 +268,9 @@ boolean artif;
const struct icp *iprobs = Is_rogue_level(&u.uz)
? (const struct icp *) rogueprobs
: Inhell ? (const struct icp *) hellprobs
: (const struct icp *) mkobjprobs;
: Role_if(PM_CARTOMANCER)
? (const struct icp *) cartprobs
: (const struct icp *) mkobjprobs;

for (tprob = rnd(100); (tprob -= iprobs->iprob) > 0; iprobs++)
;
Expand Down

0 comments on commit 31cd543

Please sign in to comment.