Skip to content

Commit

Permalink
Bring ring prices back to normal.
Browse files Browse the repository at this point in the history
  • Loading branch information
elunna committed Oct 16, 2023
1 parent 93587cc commit 63ad017
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/shk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2656,9 +2656,10 @@ register struct monst *shkp; /* if angry, impose a surcharge */
}
}
/* adjust for different material */
multiplier *= matprices[obj->material];
divisor *= matprices[objects[obj->otyp].oc_material];

if (obj->oclass != RING_CLASS) {
multiplier *= matprices[obj->material];
divisor *= matprices[objects[obj->otyp].oc_material];
}
if (uarmh && uarmh->otyp == DUNCE_CAP)
multiplier *= 4L, divisor *= 3L;
else if ((Role_if(PM_TOURIST) && u.ulevel < (MAXULEV / 2))
Expand Down Expand Up @@ -2890,9 +2891,10 @@ register struct monst *shkp;
tmp = get_pricing_units(obj) * unit_price;

/* adjust for different material */
multiplier *= matprices[obj->material];
divisor *= matprices[objects[obj->otyp].oc_material];

if (obj->oclass != RING_CLASS) {
multiplier *= matprices[obj->material];
divisor *= matprices[objects[obj->otyp].oc_material];
}
if (obj->globby)
goto end;

Expand Down

0 comments on commit 63ad017

Please sign in to comment.