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

Add bones handling: kill 'em.

Artifacts made during the game (expected to be randarts) do not persist into bones files. They do not keep their names, either. This seems much simpler than saving the randarts to the bones level (which may be doable at a later date).
This commit is contained in:
NeroOneTrueKing 2021-08-13 21:04:40 -05:00 committed by ChrisANG
parent 993a91de55
commit eeeb728fd5

View file

@ -72,6 +72,11 @@ boolean restore;
if (restore && get_ox(otmp, OX_ENAM))
sanitize_name(ONAME(otmp));
if (!restore && otmp->oartifact > NROFARTIFACTS) {
/* randarts get cleared in bonesfiles */
otmp->oartifact = 0;
}
if (((otmp->otyp != CORPSE || otmp->corpsenm < SPECIAL_PM)
&& otmp->otyp != STATUE)