diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-10-27 19:25:50 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-10-27 19:25:50 +0100 |
commit | 867823f4429b1215cd5c3aa6d2415fb324429891 (patch) | |
tree | 2915f6c2e0acae69ad2b738e0038766354d60856 /src/trap_type.hpp | |
parent | f005efee43bdb2e9749b02f73b876bf2c1145f1b (diff) | |
parent | 47fb7807d77c92fa6e72017501d9355d780adf40 (diff) |
Merge branch 'cpp'
Diffstat (limited to 'src/trap_type.hpp')
-rw-r--r-- | src/trap_type.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/trap_type.hpp b/src/trap_type.hpp new file mode 100644 index 00000000..d82c925b --- /dev/null +++ b/src/trap_type.hpp @@ -0,0 +1,24 @@ +#pragma once + +#include "h-basic.h" + +/** + * Trap descriptor. + */ +struct trap_type +{ + s16b probability; /* probability of existence */ + s16b another; /* does this trap easily combine */ + s16b p1valinc; /* how much does this trap attribute to p1val */ + byte difficulty; /* how difficult to disarm */ + byte minlevel; /* what is the minimum level on which the traps should be */ + byte color; /* what is the color on screen */ + u32b flags; /* where can these traps go - and perhaps other flags */ + bool_ ident; /* do we know the name */ + s16b known; /* how well is this trap known */ + const char *name; /* normal name like weakness */ + s16b dd, ds; /* base damage */ + char *text; /* longer description once you've met this trap */ + byte g_attr; /* Overlay graphic attribute */ + char g_char; /* Overlay graphic character */ +}; |