72 if (creator->
inv != NULL) {
78 ob_to_copy = creator->
inv;
79 for (ob = creator->
inv->
below, i = 1; ob != NULL; ob = ob->
below, i++) {
80 if (
rndm(0, i) == 0) {
89 LOG(
llevError,
"move_creator: Creator doesn't have other arch set: %s (%s, %d, %d)\n", creator->
name ? creator->
name :
"(null)", creator->
map->
path, creator->
x, creator->
y);
103 if (creator->
level != 0)
static method_ret creator_type_trigger(ob_methods *context, object *op, object *cause, int state)
void unflag_inv(object *op, int flag)
object * insert_ob_in_map_at(object *op, mapstruct *m, object *originator, int flag, int x, int y)
struct archt * other_arch
void init_type_creator(void)
int rndm(int min, int max)
static void move_creator(object *creator)
#define FLAG_IS_A_TEMPLATE
object * object_create_clone(object *asrc)
#define QUERY_FLAG(xyz, p)
#define CLEAR_FLAG(xyz, p)
void fix_generated_item(object *op, object *creator, int difficulty, int max_magic, int flags)
void register_trigger(int ob_type, trigger_func method)
object * object_create_arch(archetype *at)
#define FREE_AND_COPY(sv, nv)
static method_ret creator_type_process(ob_methods *context, object *op)
void register_process(int ob_type, process_func method)
void LOG(LogLevel logLevel, const char *format,...)
void free_object(object *ob)
int ob_blocked(const object *ob, mapstruct *m, sint16 x, sint16 y)