1 /**
2  * \file obj-curse.h
3  * \brief functions to deal with object curses
4  *
5  * Copyright (c) 2016 Nick McConnell
6  *
7  * This work is free software; you can redistribute it and/or modify it
8  * under the terms of either:
9  *
10  * a) the GNU General Public License as published by the Free Software
11  *    Foundation, version 2, or
12  *
13  * b) the "Angband licence":
14  *    This software may be copied and distributed for educational, research,
15  *    and not for profit purposes provided that this copyright and statement
16  *    are included in all such copies.  Other copyrights may also apply.
17  */
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 */
36