Non-metallic gloves protect worn rings from shock

This commit is contained in:
Guillaume Clemens
2021-09-06 21:01:53 +03:00
committed by Pasi Kallinen
parent 9942b65df7
commit 67295bc706
+2 -1
View File
@@ -5070,7 +5070,8 @@ destroy_one_item(struct obj *obj, int osym, int dmgtyp)
quan = obj->quan;
switch (osym) {
case RING_CLASS:
if (obj->otyp == RIN_SHOCK_RESISTANCE) {
if (((obj->owornmask & W_RING) && uarmg && !is_metallic(uarmg))
|| obj->otyp == RIN_SHOCK_RESISTANCE) {
skip++;
break;
}