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)
struct archetype * arch
Pointer to archetype.
void LOG(LogLevel logLevel, const char *format,...)
Logs a message to stderr, or to file.
void object_remove(object *op)
This function removes the object op from the linked list of objects which it is currently tied to...
static void move_duplicator(object *op)
Trigger for duplicator.
object * above
Pointer to the object stacked above this one.
int16_t y
Position in the map for this object.
Duplicator/multiplier object.
Global type definitions and header inclusions.
char method_ret
Define some standard return values for callbacks which don't need to return any other results...
int16_t level
Level of creature or object.
sstring name
More definite name, like "generate_kobold".
char path[HUGE_BUF]
Filename of the map.
void object_free_drop_inventory(object *ob)
Frees everything allocated by an object, removes it from the list of used objects, and puts it on the list of free objects.
living stats
Str, Con, Dex, etc.
struct mapstruct * map
Pointer to the map in which this object is present.
void register_trigger(int ob_type, trigger_func method)
Registers the trigger method for the given type.
struct archetype * other_arch
Pointer used for various things - mostly used for what this objects turns into or what this object cr...
uint32_t nrof
Number of objects.
void init_type_duplicator(void)
Initializer for the duplicator object type.
int32_t food
How much food in stomach.
Object type functions and variables.
static method_ret duplicator_type_trigger(object *op, object *cause, int state)
A duplicator is triggered.