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 30 /* 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 #define DEBUFF_CRITICAL_HIT 10 /* Effective increase in to-hit for critical hit calcs */
34 
38 enum {
39  #define MON_TMD(a, b, c, d, e, f, g, h) MON_TMD_##a,
40  #include "list-mon-timed.h"
41  #undef MON_TMD
42 };
43 
47 #define MON_TMD_FLG_NOTIFY 0x01 /* Give notification */
48 /* 0x02 */
49 #define MON_TMD_FLG_NOMESSAGE 0x04 /* Never show a message */
50 #define MON_TMD_FLG_NOFAIL 0x08 /* Never fail */
51 
53 int mon_timed_name_to_idx(const char *name);
54 bool mon_inc_timed(struct monster *mon, int effect_type, int timer, int flag, bool id);
55 bool mon_dec_timed(struct monster *mon, int effect_type, int timer, int flag, bool id);
56 bool mon_clear_timed(struct monster *mon, int effect_type, int flag, bool id);
57 
58 #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:290
Monster information, for a specific monster.
Definition: monster.h:323
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:61
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:222
Intialize random names
Definition: init.c:656
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:270