Crossfire Server, Branch 1.12
R12190
|
The implementation of the Poison class of objects. More...
#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
Go to the source code of this file.
Functions | |
void | init_type_poison (void) |
Initializer for the POISON object type. | |
static method_ret | poison_type_apply (ob_methods *context, object *op, object *applier, int aflags) |
Attempts to apply some poison. |
The implementation of the Poison class of objects.
Definition in file poison.c.
void init_type_poison | ( | void | ) |
Initializer for the POISON object type.
Definition at line 38 of file poison.c.
References POISON, poison_type_apply(), and register_apply().
Referenced by register_all_ob_types().
static method_ret poison_type_apply | ( | ob_methods * | context, |
object * | op, | ||
object * | applier, | ||
int | aflags | ||
) | [static] |
Attempts to apply some poison.
context | The method context |
op | The poison to apply |
applier | The object attempting to apply the poison. |
aflags | Special flags (always apply/unapply) |
Definition at line 50 of file poison.c.
References AT_POISON, BIG_NAME, decrease_ob, draw_ext_info(), handle_apply_yield(), hit_player(), llevDebug, LOG(), METHOD_OK, MSG_TYPE_APPLY, MSG_TYPE_APPLY_CURSED, NDI_UNIQUE, play_sound_player_only(), PLAYER, snprintf(), and SOUND_TYPE_ITEM.
Referenced by init_type_poison().