58 if (trap->
inv && (!originator || originator->
type !=
PLAYER)) {
69 "The altar casts %s.", trap->
inv->
name);
static method_ret altar_type_move_on(object *trap, object *victim, object *originator)
Move on this Altar object.
method_ret common_pre_ob_move_on(object *trap, object *victim, object *originator)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...) PRINTF_ARGS(6
int32_t value
How much money it is worth (or contains)
void register_move_on(int ob_type, move_on_func method)
Registers the move_on method for the given type.
Global type definitions and header inclusions.
#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...
#define HEAD(op)
Returns the head part of an object.
void common_post_ob_move_on(object *trap, object *victim, object *originator)
void init_type_altar(void)
Initializer for the ALTAR object type.
sstring name
The name of the object, obviously...
uint8_t type
PLAYER, BULLET, etc.
#define MSG_TYPE_APPLY_SUCCESS
Was able to apply object.
object * inv
Pointer to the first object in the inventory.
Object type functions and variables.
int cast_spell(object *op, object *caster, int dir, object *spell_ob, char *stringarg)
Main dispatch when someone casts a spell.