55 "Yech! That tasted poisonous!");
void LOG(LogLevel logLevel, const char *format,...)
Logs a message to stderr, or to file.
void apply_handle_yield(object *tmp)
This checks whether the object has a "on_use_yield" field, and if so generated and drops matching ite...
Global type definitions and header inclusions.
struct player * contr
Pointer to the player which control this object.
void draw_ext_info(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message)
Sends message to player(s).
#define MSG_TYPE_APPLY
Applying objects.
char method_ret
Define some standard return values for callbacks which don't need to return any other results...
static method_ret poison_type_apply(object *op, object *applier, int aflags)
Attempts to apply some poison.
char killer[BIG_NAME]
Who killed this player.
living stats
Str, Con, Dex, etc.
#define AT_POISON
Some damage each turn thereafter (1024)
#define object_decrease_nrof_by_one(xyz)
void play_sound_player_only(player *pl, int8_t sound_type, object *emitter, int dir, const char *action)
Plays a sound for specified player only.
sstring name
The name of the object, obviously...
Only for debugging purposes.
void init_type_poison(void)
Initializer for the POISON object type.
uint8_t type
PLAYER, BULLET, etc.
#define MSG_TYPE_APPLY_CURSED
Applied a cursed object (BAD)
#define NDI_UNIQUE
Print immediately, don't buffer.
int32_t food
How much food in stomach.
int hit_player(object *op, int dam, object *hitter, uint32_t type, int full_hit)
Object is attacked by something.
Object type functions and variables.
void register_apply(int ob_type, apply_func method)
Registers the apply method for the given type.