Skip to content

Commit

Permalink
The price of summon cards scales with their monster difficulty.
Browse files Browse the repository at this point in the history
  • Loading branch information
elunna committed Nov 17, 2023
1 parent 5cfc119 commit 9c61d28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/shk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2660,6 +2660,7 @@ register struct monst *shkp; /* if angry, impose a surcharge */
divisor *= 3L;
}
}

/* adjust for different material */
if (obj->oclass != RING_CLASS && obj->oclass != AMULET_CLASS) {
multiplier *= matprices[obj->material];
Expand Down Expand Up @@ -4857,6 +4858,10 @@ boolean shk_buying;
{
register long tmp = (long) objects[obj->otyp].oc_cost;

/* Scale summon card price with monster difficulty */
if (obj->otyp == SCR_CREATE_MONSTER && obj->corpsenm != NON_PM) {
tmp = 10L * mons[obj->corpsenm].difficulty;
}
if (obj->oartifact) {
tmp = arti_cost(obj);
if (shk_buying)
Expand Down

0 comments on commit 9c61d28

Please sign in to comment.