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/alloc_entry.hpp | |
parent | f005efee43bdb2e9749b02f73b876bf2c1145f1b (diff) | |
parent | 47fb7807d77c92fa6e72017501d9355d780adf40 (diff) |
Merge branch 'cpp'
Diffstat (limited to 'src/alloc_entry.hpp')
-rw-r--r-- | src/alloc_entry.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/alloc_entry.hpp b/src/alloc_entry.hpp new file mode 100644 index 00000000..41ec3b66 --- /dev/null +++ b/src/alloc_entry.hpp @@ -0,0 +1,20 @@ +#pragma once + +#include "h-basic.h" + +/** + * An entry for the object/monster allocation functions + * + * Pass 1 is determined from allocation information + * Pass 2 is determined from allocation restriction + * Pass 3 is determined from allocation calculation + */ +struct alloc_entry +{ + s16b index; /* The actual index */ + + byte level; /* Base dungeon level */ + byte prob1; /* Probability, pass 1 */ + byte prob2; /* Probability, pass 2 */ + byte prob3; /* Probability, pass 3 */ +}; |