1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2024-09-19 14:05:02 +01:00
notnotdnethack/include/oextra.h
NeroOneTrueKing 54578de7ad Add "summoned" extended structure for monsters and objects
Summoned creatures disappear when their summoner dies or leaves the level.
Summoned creatures' items disappear when the creature dies or leaves the level.

Many forms of monsters summoning other monsters use this, with notable exceptions:
 - minion gating (melee gating and monster spell)
 - raising the dead (monster spell)
 - wizard duplication
2021-01-15 00:34:19 -06:00

27 lines
528 B
C

/* SCCS Id: @(#)mextra.h 3.4 1992/11/14 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
#ifndef OEXTRA_H
#define OEXTRA_H
#include "exstruct.h"
#define OX_ENAM 0
#define OX_EMON 1
#define OX_EMID 2
#define OX_ESUM 3
#define NUM_OX 4
/* container for all oextra */
union oextra {
void * eindex[NUM_OX];
struct {
struct enam * enam_p;
struct emon * emon_p;
int * emid_p;
struct esum * esum_p;
};
};
#endif /* OEXTRA_H */