 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
58 if (trap->
inv && (!originator || originator->
type !=
PLAYER)) {
69 "The altar casts %s.", trap->
inv->
name);
object * inv
Pointer to the first object in the inventory.
int cast_spell(object *op, object *caster, int dir, object *spell_ob, char *stringarg)
Main dispatch when someone casts a spell.
void register_move_on(int ob_type, move_on_func method)
Registers the move_on method for the given type.
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...) PRINTF_ARGS(6
#define MSG_TYPE_APPLY_SUCCESS
Was able to apply object.
method_ret common_pre_ob_move_on(object *trap, object *victim, object *originator)
#define HEAD(op)
Returns the head part of an object.
int32_t value
How much money it is worth (or contains)
uint8_t type
PLAYER, BULLET, etc.
char method_ret
Define some standard return values for callbacks which don't need to return any other results.
sstring name
The name of the object, obviously...
static method_ret altar_type_move_on(object *trap, object *victim, object *originator)
Move on this Altar object.
#define MSG_TYPE_APPLY
Applying objects.
void common_post_ob_move_on(object *trap, object *victim, object *originator)
void init_type_altar(void)
Initializer for the ALTAR object type.