Go to the documentation of this file.
50 object *above =
op->above;
55 nabove = above->
above;
62 if (
op->stats.food < 1) {
63 LOG(
llevDebug,
"move_deep_swamp(): player is here, but state is %d\n",
op->stats.food);
66 if (
op->stats.food < 10) {
67 if (
rndm(0, 2) == 0) {
69 "You are down to your waist in the wet %s.",
71 op->stats.food = woodsman ?
op->stats.food+1 : 10;
74 }
else if (
op->stats.food < 20) {
75 if (
rndm(0, 2) == 0) {
77 "You are down to your NECK in the dangerous %s.",
79 op->stats.food = woodsman ?
op->stats.food+1 : 20;
84 }
else if (
rndm(0, 4) == 0) {
87 "%s disappeared into a %s.", above->
name,
op->name);
121 "You are down to your knees in the %s.", trap->
name);
#define MSG_TYPE_ADMIN_PLAYER
#define FLAG_OVERLAY_FLOOR
#define QUERY_FLAG(xyz, p)
void register_process(int ob_type, process_func method)
object * object_find_by_type_subtype(const object *who, int type, int subtype)
#define object_decrease_nrof_by_one(xyz)
method_ret common_pre_ob_move_on(object *trap, object *victim, object *originator)
#define MSG_TYPE_VICTIM_SWAMP
void register_move_on(int ob_type, move_on_func method)
int rndm(int min, int max)
static method_ret deep_swamp_type_move_on(object *trap, object *victim, object *originator)
void LOG(LogLevel logLevel, const char *format,...)
static method_ret deep_swamp_type_process(object *op)
void common_post_ob_move_on(object *trap, object *victim, object *originator)
void init_type_deep_swamp(void)
void kill_player(object *op, const object *killer)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...)