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

Merge pull request #1908 from gebulmer/fix/wraithworm

Fix sanityflag variant of monster parser
This commit is contained in:
Chris-plus-alphanumericgibberish 2022-03-31 07:41:08 -04:00 committed by GitHub
commit e9cbc5fd3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -861,6 +861,13 @@ monster_detail : MONSTER_ID chance ':' monster_c ',' m_name ',' coordinate '[' S
Free($6);
}
}
monster_infos
{
if (++nmons >= MAX_OF_TYPE) {
yyerror("Too many monsters in room or mazepart!");
nmons--;
}
}
| MONSTER_ID chance ':' monster_c ',' m_name ',' coordinate
{
tmpmonst[nmons] = New(monster);