1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-05-03 22:05:09 +01:00

Auto-identify cold/fire/shock res rings

This commit is contained in:
Ron Nazarov 2024-04-13 12:59:55 +01:00
parent b30a601b4b
commit dd1d3bf098
Signed by: noisytoot
GPG key ID: 1D43EF4F4492268B

View file

@ -1146,13 +1146,22 @@ register struct obj *obj;
}
break;
case RIN_FIRE_RESISTANCE:
if(!oldprop && !HFire_resistance) pline("The ring feels cool!");
if(!oldprop && !HFire_resistance) {
makeknown(obj->otyp);
pline("The ring feels cool!");
}
break;
case RIN_COLD_RESISTANCE:
if(!oldprop && !HCold_resistance) pline("The ring feels warm!");
if(!oldprop && !HCold_resistance) {
makeknown(obj->otyp);
pline("The ring feels warm!");
}
break;
case RIN_SHOCK_RESISTANCE:
if(!oldprop && !HShock_resistance) Your("ringfinger feels numb!");
if(!oldprop && !HShock_resistance) {
makeknown(obj->otyp);
Your("ringfinger feels numb!");
}
break;
case RIN_SEE_INVISIBLE:
/* can now see invisible monsters */