From 63ad017b0ab13826feeda9291e3d6400f5815c94 Mon Sep 17 00:00:00 2001 From: Erik Lunna Date: Mon, 16 Oct 2023 12:26:06 +0200 Subject: [PATCH] Bring ring prices back to normal. --- src/shk.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/shk.c b/src/shk.c index 78fb096dd..c051cf82d 100644 --- a/src/shk.c +++ b/src/shk.c @@ -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)) @@ -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;