55 for (i = 1; i < 9; i += 2)
84 for (i = 1; i < 9; i += 2) {
117 object *op, *head = NULL;
125 if (gen->
map == NULL) {
131 for (op = gen->
inv; op; op = op->
below)
134 LOG(
llevError,
"Generator (%s) has no inventory in generate_monster_inv?\n", gen->
name);
138 for (op=gen->
inv;qty;qty--)
171 object *op, *head = NULL, *prev = NULL;
183 if (gen->
map == NULL) {
227 const char *code, *value;
235 if (max_children < 1)
247 if (value && value == code) {
254 if (children >= max_children+1)
263 }
else if (gen->
name) {
292 if (op->
env != NULL) {
296 "You regain your senses.", NULL);
302 if (op->
env != NULL && op->
inv != NULL) {
303 object *inv = op->
inv;
315 "Your %s recovers its original form.",
316 "Your %s recovers its original form.",
336 if (op->
env != NULL) {
378 for (tmp = op->
above; tmp != NULL; tmp = next) {
435 object *payload = op->
inv;
505 if (op->
skill != NULL)
640 object *victim, *nextmover;
655 victim = victim->
head;
666 LOG(
llevError,
"move_player_mover: Trying to push player off the map! map=%s (%d, %d)\n", m->
path, op->
x, op->
y);
673 for (nextmover =
GET_MAP_OB(m, nx, ny); nextmover != NULL; nextmover = nextmover->
above) {
int get_map_flags(mapstruct *oldmap, mapstruct **newmap, sint16 x, sint16 y, sint16 *nx, sint16 *ny)
int find_multi_free_spot_within_radius(object *ob, object *gen, int *hx, int *hy)
const char * get_ob_key_value(const object *op, const char *const key)
int move_player(object *op, int dir)
int free_no_drop(object *op)
long strtol(register char *str, char **ptr, register int base)
static void generate_monster(object *gen)
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)
#define SET_ANIMATION(ob, newanim)
struct treasureliststruct * randomitems
short freearr_x[SIZEOFFREE]
object * merge_ob(object *op, object *top)
void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *message, const char *oldmessage)
void update_object(object *op, int action)
void check_spell_expiry(object *spell)
method_ret ob_process(object *op)
void fix_stopped_item(object *op, mapstruct *map, object *originator)
#define FLAG_SEE_ANYWHERE
void make_sure_seen(const object *op)
static void animate_trigger(object *op)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *new_format, const char *old_format,...)
struct archt * other_arch
#define MSG_TYPE_ATTRIBUTE_BAD_EFFECT_END
void remove_locked_door(object *op)
short freearr_y[SIZEOFFREE]
static void remove_force(object *op)
void create_treasure(treasurelist *t, object *op, int flag, int difficulty, int tries)
int rndm(int min, int max)
void fix_multipart_object(object *tmp)
object * stop_item(object *op)
int change_abil(object *op, object *tmp)
void remove_ob(object *op)
static void move_hole(object *op)
object * get_player_container(object *op)
int move_monster(object *op)
int should_director_abort(object *op, object *victim)
int find_first_free_spot(const object *ob, mapstruct *m, int x, int y)
#define MSG_TYPE_ATTRIBUTE
object * fix_stopped_arrow(object *op)
object * present(uint8 type, mapstruct *m, int x, int y)
void generate_artifact(object *op, int difficulty)
#define FLAG_IS_A_TEMPLATE
#define MSG_TYPE_ITEM_CHANGE
object * object_create_clone(object *asrc)
#define FREE_AND_CLEAR_STR(xyz)
#define QUERY_FLAG(xyz, p)
#define CLEAR_FLAG(xyz, p)
object * insert_ob_in_ob(object *op, object *where)
void legacy_remove_force(object *op)
#define GENERATE_SPEED(xyz)
method_ret ob_move_on(object *op, object *victim, object *originator)
object * insert_ob_in_map(object *op, mapstruct *m, object *originator, int flag)
void move_firewall(object *op)
void animate_object(object *op, int dir)
void legacy_animate_trigger(object *op)
static void generate_monster_arch(object *gen)
void move_player_mover(object *op)
int set_ob_key_value(object *op, const char *key, const char *value, int add_key)
void free_object2(object *ob, int free_inventory)
#define NUM_ANIMATIONS(ob)
int move_object(object *op, int dir)
void query_short_name(const object *op, char *buf, size_t size)
int execute_event(object *op, int eventcode, object *activator, object *third, const char *message, int fix)
void update_ob_speed(object *op)
sstring add_string(const char *str)
#define GET_MAP_OB(M, X, Y)
#define FORCE_TRANSFORMED_ITEM
void LOG(LogLevel logLevel, const char *format,...)
static void change_object(object *op)
void free_object(object *ob)
void make_sure_not_seen(const object *op)
static void generate_monster_inv(object *gen)
void fix_object(object *op)
void legacy_move_hole(object *op)
object * arch_to_object(archetype *at)
#define FLAG_CONTENT_ON_GEN
#define SCRIPT_FIX_NOTHING
#define HAS_RANDOM_ITEMS(op)
int cast_spell(object *op, object *caster, int dir, object *spell_ob, char *stringarg)
int process_object(object *op)
void remove_door(object *op)