1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-30 01:12:25 +01:00

Xorns (and other metalivores) cannot eat bolted magic chests

This commit is contained in:
NeroOneTrueKing 2022-12-10 01:52:59 -06:00
parent 85b164eabc
commit d297e18127

View file

@ -2031,7 +2031,8 @@ meatmetal(mtmp)
if (mtmp->mtyp == PM_RUST_MONSTER && !is_rustprone(otmp))
continue;
if (is_metallic(otmp) && !obj_resists(otmp, 0, 95) &&
touch_artifact(otmp, mtmp, FALSE)) {
touch_artifact(otmp, mtmp, FALSE) && !(otmp->otyp == MAGIC_CHEST && otmp->obolted)
) {
if (mtmp->mtyp == PM_RUST_MONSTER && otmp->oerodeproof) {
if (canseemon(mtmp) && flags.verbose) {
pline("%s eats %s!",