Go to the documentation of this file.
56 nabove =
above->above;
59 &&
above->stats.hp >= 0
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;
73 above->speed_left -=
op->move_slow_penalty;
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;
81 snprintf(
above->contr->killer,
sizeof(
above->contr->killer),
"drowning in a %s",
op->name);
83 above->speed_left -=
op->move_slow_penalty;
85 }
else if (
rndm(0, 4) == 0) {
88 "%s disappeared into a %s.",
above->name,
op->name);
89 snprintf(
above->contr->killer,
sizeof(
above->contr->killer),
"drowning in a %s",
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
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)
Magical Runes Runes are magical inscriptions on the dungeon which cast a spell or detonate when something steps on them Flying objects don t detonate runes Beware ! Runes are invisible most of the time They are only visible occasionally ! There are several runes which are there are some special runes which may only be called with the invoke and people may apply it to read it Maybe useful for mazes ! This rune will not nor is it ordinarily invisible Partial Visibility of they ll be visible only part of the time They have so the higher your the better hidden the runes you make are Examples of whichever way you re facing invoke magic rune transfer as above
int rndm(int min, int max)
void common_post_ob_move_on(object *trap, object *victim, object *originator)
void kill_player(object *op, const object *killer)