summaryrefslogtreecommitdiff
path: root/src/corrupt.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:59 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:59 +0100
commit3577729037709acd5d2105665134ec27a64bc4c3 (patch)
tree29a8c3beef42e302174d44895e0dfff1e066ae5e /src/corrupt.cc
parent9670b948b8d1974ae3ec8212eec1773908c345c5 (diff)
Move corrupt.cc function declarations to separate header
Diffstat (limited to 'src/corrupt.cc')
-rw-r--r--src/corrupt.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/corrupt.cc b/src/corrupt.cc
index e9f8ced5..a1b4af18 100644
--- a/src/corrupt.cc
+++ b/src/corrupt.cc
@@ -2,6 +2,25 @@
#include <assert.h>
/**
+ * Corruptions
+ */
+typedef struct corruption_type corruption_type;
+struct corruption_type
+{
+ int modules[3]; /* Modules where this corruption is available; terminated with -1 entry */
+ byte color;
+ cptr group;
+ cptr name;
+ cptr get_text;
+ cptr lose_text; /* If NULL, the corruption is NOT removable by any means */
+ cptr desc;
+ s16b depends[5]; /* terminated by a -1 entry */
+ s16b opposes[5]; /* terminated by a -1 entry */
+ void (*gain_callback)(); /* callback to invoke when gained */
+ s16b power; /* index of granted power if >= 0, ignored otherwise */
+};
+
+/**
* Vampire corruption helpers
*/