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