Non-metallic gloves protect worn rings from shock

This commit is contained in:
Guillaume Clemens
2021-07-30 16:37:17 +02:00
committed by Pasi Kallinen
parent 9942b65df7
commit 67295bc706

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;
}