Angband
mon-timed.h
Go to the documentation of this file.
1 
19 #ifndef MONSTER_TIMED_H
20 #define MONSTER_TIMED_H
21 
25 #define STUN_MISS_CHANCE 10 /* 1 in __ chance of missing turn when stunned */
26 #define STUN_HIT_REDUCTION 25 /* Percentage reduction in accuracy for combat */
27 #define STUN_DAM_REDUCTION 25 /* Percentage reduction in damage */
28 
29 #define CONF_ERRATIC_CHANCE 20 /* Percentage chance of erratic movement when confused */
30 #define CONF_HIT_REDUCTION 20 /* Percentage reduction in accuracy for spells */
31 #define CONF_RANDOM_CHANCE 2 /* 1 in __ chance of an aimed spell going in random direction */
32 
33 
37 enum {
38  #define MON_TMD(a, b, c, d, e, f, g, h) MON_TMD_##a,
39  #include "list-mon-timed.h"
40  #undef MON_TMD
41 };
42 
46 #define MON_TMD_FLG_NOTIFY 0x01 /* Give notification */
47 /* 0x02 */
48 #define MON_TMD_FLG_NOMESSAGE 0x04 /* Never show a message */
49 #define MON_TMD_FLG_NOFAIL 0x08 /* Never fail */
50 
52 int mon_timed_name_to_idx(const char *name);
53 bool mon_inc_timed(struct monster *mon, int effect_type, int timer, int flag, bool id);
54 bool mon_dec_timed(struct monster *mon, int effect_type, int timer, int flag, bool id);
55 bool mon_clear_timed(struct monster *mon, int effect_type, int flag, bool id);
56 
57 #endif /* MONSTER_TIMED_H */
bool mon_clear_timed(struct monster *mon, int effect_type, int flag, bool id)
Clears the timed effect effect_type.
Definition: mon-timed.c:294
Monster information, for a specific monster.
Definition: monster.h:320
png_infop png_uint_32 flag
Definition: libpng12/png.h:2191
int mon_timed_name_to_idx(const char *name)
Functions.
Definition: mon-timed.c:60
Monster timed flags.
bool mon_inc_timed(struct monster *mon, int effect_type, int timer, int flag, bool id)
Increases the timed effect effect_type by timer.
Definition: mon-timed.c:226
Intialize random names
Definition: init.c:658
bool mon_dec_timed(struct monster *mon, int effect_type, int timer, int flag, bool id)
Decreases the timed effect effect_type by timer.
Definition: mon-timed.c:274