- char d = rrand() % 5;
- struct yx_uint16 t = mv_yx_in_dir(d, monster->map_obj.pos);
- struct MapObjDef * mod = get_map_obj_def(world, monster->map_obj.type);
- char * dsc = mod->desc;
- if (yx_uint16_cmp(&t, &world->player->pos))
- {
- monster_hits_player(world, dsc);
- return;
- }
- struct Monster * other_monster;
- for (other_monster = world->monster;
- other_monster != 0;
- other_monster = other_monster->map_obj.next)
- {
- if (other_monster == monster)
- {
- continue;
- }
- if (yx_uint16_cmp(&t, &other_monster->map_obj.pos))
- {
- monster_bumps_monster(world, dsc, other_monster);
- return;
- }
- }
- if (is_passable(world->map, t))
- {
- monster->map_obj.pos = t;
- }
+ update_log(world, "\nYou wait.");
+ turn_over(world, get_command_id(world, "wait"));