diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:59 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:59 +0100 |
commit | 3577729037709acd5d2105665134ec27a64bc4c3 (patch) | |
tree | 29a8c3beef42e302174d44895e0dfff1e066ae5e /src/corrupt.cc | |
parent | 9670b948b8d1974ae3ec8212eec1773908c345c5 (diff) |
Move corrupt.cc function declarations to separate header
Diffstat (limited to 'src/corrupt.cc')
-rw-r--r-- | src/corrupt.cc | 19 |
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 */ |