From 8dc6d32c4f0bec74948a12a7b04854fde74f59aa Mon Sep 17 00:00:00 2001 From: Erik Lunna Date: Mon, 16 Oct 2023 12:56:10 +0200 Subject: [PATCH] Amulet prices are also not affected by their material. --- src/shk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shk.c b/src/shk.c index c051cf82d..e61241d65 100644 --- a/src/shk.c +++ b/src/shk.c @@ -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]; } @@ -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]; }