Angband
obj-slays.h
Go to the documentation of this file.
1 
18 #ifndef OBJECT_SLAYS_H
19 #define OBJECT_SLAYS_H
20 
21 #include "monster.h"
22 
23 extern struct slay *slays;
24 extern struct brand *brands;
25 
26 /*** Functions ***/
27 bool same_monsters_slain(int slay1, int slay2);
28 void copy_slays(bool **dest, bool *source);
29 void copy_brands(bool **dest, bool *source);
30 bool append_random_brand(bool **current, struct brand **brand);
31 bool append_random_slay(bool **current, struct slay **slay);
32 int brand_count(bool *brands);
33 int slay_count(bool *slays);
34 void improve_attack_modifier(struct object *obj, const struct monster *mon,
35  int *brand_used, int *slay_used, char *verb,
36  bool range, bool real);
37 bool react_to_slay(struct object *obj, const struct monster *mon);
38 
39 #endif /* OBJECT_SLAYS_H */
void copy_brands(bool **dest, bool *source)
Add all the brands from one structure to another.
Definition: obj-slays.c:88
bool append_random_slay(bool **current, struct slay **slay)
Append a random slay, currently to a randart This will later change so that selection is done elsewhe...
Definition: obj-slays.c:167
Monster information, for a specific monster.
Definition: monster.h:323
Slay type.
Definition: object.h:75
void copy_slays(bool **dest, bool *source)
Add all the slays from one structure to another.
Definition: obj-slays.c:53
void improve_attack_modifier(struct object *obj, const struct monster *mon, int *brand_used, int *slay_used, char *verb, bool range, bool real)
Extract the multiplier from a given object hitting a given monster.
Definition: obj-slays.c:276
bool append_random_brand(bool **current, struct brand **brand)
Append a random brand, currently to a randart This will later change so that selection is done elsewh...
Definition: obj-slays.c:123
bool same_monsters_slain(int slay1, int slay2)
Check if two slays affect the same set of monsters.
Definition: obj-slays.c:37
char * verb
Definition: object.h:65
bool react_to_slay(struct object *obj, const struct monster *mon)
React to slays which hurt a monster.
Definition: obj-slays.c:358
struct slay * slays
Definition: obj-slays.c:31
int brand_count(bool *brands)
Count a set of brands.
Definition: obj-slays.c:209
Flags, structures and variables for monsters.
int slay_count(bool *slays)
Count a set of slays.
Definition: obj-slays.c:228
struct brand * brands
Definition: obj-slays.c:32
Definition: source.h:7
Brand type.
Definition: object.h:62