Skip to content

Commit

Permalink
Amulet prices are also not affected by their material.
Browse files Browse the repository at this point in the history
  • Loading branch information
elunna committed Oct 16, 2023
1 parent 63ad017 commit 8dc6d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2656,7 +2656,7 @@ register struct monst *shkp; /* if angry, impose a surcharge */
}
}
/* adjust for different material */
if (obj->oclass != RING_CLASS) {
if (obj->oclass != RING_CLASS && obj->oclass != AMULET_CLASS) {
multiplier *= matprices[obj->material];
divisor *= matprices[objects[obj->otyp].oc_material];
}
Expand Down Expand Up @@ -2891,7 +2891,7 @@ register struct monst *shkp;
tmp = get_pricing_units(obj) * unit_price;

/* adjust for different material */
if (obj->oclass != RING_CLASS) {
if (obj->oclass != RING_CLASS && obj->oclass != AMULET_CLASS) {
multiplier *= matprices[obj->material];
divisor *= matprices[objects[obj->otyp].oc_material];
}
Expand Down

0 comments on commit 8dc6d32

Please sign in to comment.