 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
62 "You need to mark a lightable object.");
70 if (lighter->
nrof > 1) {
80 "You fail to light the %s with a used up %s.",
void init_type_lighter(void)
Initializer for the LIGHTER object type.
void register_apply(int ob_type, apply_func method)
Registers the apply 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
static method_ret lighter_type_apply(object *lighter, object *applier, int aflags)
Attempts to apply a lighter.
object * object_insert_in_ob(object *op, object *where)
This function inserts the object op in the linked list inside the object environment.
int32_t last_eat
How long since we last ate.
uint8_t type
PLAYER, BULLET, etc.
int32_t food
How much food in stomach.
char method_ret
Define some standard return values for callbacks which don't need to return any other results.
void do_light(object *item, const char *lighter_name, object *applier)
Common code for both lighting an item for applying the lighter and for lighting the lightable object.
#define NDI_UNIQUE
Print immediately, don't buffer.
sstring name
The name of the object, obviously...
object * object_split(object *orig_ob, uint32_t nr, char *err, size_t size)
object_split(ob,nr) splits up ob into two parts.
#define MSG_TYPE_APPLY_FAILURE
Apply OK, but no/bad result.
uint32_t nrof
Number of objects.
living stats
Str, Con, Dex, etc.
#define MSG_TYPE_APPLY
Applying objects.
#define MSG_TYPE_APPLY_ERROR
object * find_marked_object(object *op)
Return the object the player has marked with the 'mark' command below.