Angband
obj-curse.h
Go to the documentation of this file.
1 
18 #ifndef INCLUDED_OBJ_CURSE_H
19 #define INCLUDED_OBJ_CURSE_H
20 
21 #include "object.h"
22 
23 extern struct curse *curses;
24 
25 void init_curse_knowledge(void);
26 int lookup_curse(const char *name);
27 void copy_curses(struct object *obj, int *source);
28 bool curses_are_equal(const struct object *obj1, const struct object *obj2);
29 bool append_object_curse(struct object *obj, int pick, int power);
30 void check_artifact_curses(struct artifact *art);
31 bool artifact_curse_conflicts(struct artifact *art, int pick);
32 bool append_artifact_curse(struct artifact *art, int pick, int power);
33 bool do_curse_effect(int i, struct object *obj);
34 
35 #endif /* !INCLUDED_OBJ_CURSE_H */
bool do_curse_effect(int i, struct object *obj)
Do a curse effect.
Definition: obj-curse.c:290
bool curses_are_equal(const struct object *obj1, const struct object *obj2)
Check whether two objects have the exact same curses.
Definition: obj-curse.c:76
png_uint_32 i
Definition: libpng12/png.h:2821
void copy_curses(struct object *obj, int *source)
Copy all the curses from a template to an actual object.
Definition: obj-curse.c:51
bool append_object_curse(struct object *obj, int pick, int power)
Append a given curse with a given power to an object.
Definition: obj-curse.c:142
void init_curse_knowledge(void)
int lookup_curse(const char *name)
Return the index of the curse with the given name.
Definition: obj-curse.c:33
bool append_artifact_curse(struct artifact *art, int pick, int power)
Append a given curse with a given power to an artifact.
Definition: obj-curse.c:255
struct object * obj
Definition: object.h:94
basic object structs and enums
void check_artifact_curses(struct artifact *art)
Check an artifact template for active curses, remove conflicting curses, and remove the "curses" fiel...
Definition: obj-curse.c:198
Curse type.
Definition: object.h:90
Intialize random names
Definition: init.c:756
Definition: source.h:7
Information about artifacts.
Definition: object.h:238
struct curse * curses
Definition: obj-curse.c:28
bool artifact_curse_conflicts(struct artifact *art, int pick)
Definition: obj-curse.c:217