Non-metallic gloves protect worn rings from shock
This commit is contained in:
committed by
Pasi Kallinen
parent
9942b65df7
commit
67295bc706
@@ -5070,7 +5070,8 @@ destroy_one_item(struct obj *obj, int osym, int dmgtyp)
|
|||||||
quan = obj->quan;
|
quan = obj->quan;
|
||||||
switch (osym) {
|
switch (osym) {
|
||||||
case RING_CLASS:
|
case RING_CLASS:
|
||||||
if (obj->otyp == RIN_SHOCK_RESISTANCE) {
|
if (((obj->owornmask & W_RING) && uarmg && !is_metallic(uarmg))
|
||||||
|
|| obj->otyp == RIN_SHOCK_RESISTANCE) {
|
||||||
skip++;
|
skip++;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user