 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
57 if (op->
above == NULL)
60 for (tmp = op->
above; tmp != NULL; tmp = tmp->
above) {
67 uint64_t new_nrof = (uint64_t)tmp->
nrof*op->
level;
69 if (new_nrof >= 1UL<<31)
void LOG(LogLevel logLevel, const char *format,...)
Logs a message to stderr, or to file.
struct archetype * arch
Pointer to archetype.
struct mapstruct * map
Pointer to the map in which this object is present.
char path[HUGE_BUF]
Filename of the map.
int16_t level
Level of creature or object.
object * above
Pointer to the object stacked above this one.
static method_ret duplicator_type_trigger(object *op, object *cause, int state)
A duplicator is triggered.
static void move_duplicator(object *op)
Trigger for duplicator.
int16_t y
Position in the map for this object.
void object_free_drop_inventory(object *ob)
Frees everything allocated by an object, removes it from the list of used objects,...
int32_t food
How much food in stomach.
void init_type_duplicator(void)
Initializer for the duplicator object type.
struct archetype * other_arch
Pointer used for various things - mostly used for what this objects turns into or what this object cr...
void register_trigger(int ob_type, trigger_func method)
Registers the trigger method for the given type.
char method_ret
Define some standard return values for callbacks which don't need to return any other results.
@ DUPLICATOR
Duplicator/multiplier object.
void object_remove(object *op)
This function removes the object op from the linked list of objects which it is currently tied to.
sstring name
More definite name, like "generate_kobold".
uint32_t nrof
Number of objects.
living stats
Str, Con, Dex, etc.