Sitting on cream pies destroys them

This commit is contained in:
Pasi Kallinen
2023-09-30 23:27:47 +03:00
parent 6e09c980d2
commit ac9be58970

View File

@@ -285,7 +285,11 @@ dosit(void)
You("sit on %s.", the(xname(obj)));
if (obj->otyp == CORPSE && amorphous(&mons[obj->corpsenm]))
pline("It's squishy...");
else if (!(Is_box(obj) || objects[obj->otyp].oc_material == CLOTH))
else if (obj->otyp == CREAM_PIE) {
if (!Deaf)
pline("Squelch!");
useupf(obj, obj->quan);
} else if (!(Is_box(obj) || objects[obj->otyp].oc_material == CLOTH))
pline("It's not very comfortable...");
}
} else if (trap != 0 || (u.utrap && (u.utraptype >= TT_LAVA))) {