6 REGISTRY(Monsters, BIT(3))
7 REGISTER_REGISTRY(RegisterMonsters)
8 const int MON_FIRST = 1;
9 #define MON_LAST (Monsters_COUNT - 1)
10 /** If you register a new monster, make sure to add it to all.inc */
11 #define REGISTER_MONSTER(id, inst) REGISTER(RegisterMonsters, MON, Monsters, id, monsterid, inst)
13 REGISTER_MONSTER(Null, NEW(Monster));
15 Monster get_monsterinfo(int id)
17 if (id >= MON_FIRST && id <= MON_LAST) {
18 Monster m = Monsters[id];