diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-05-27 17:33:59 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-05-29 05:37:56 +0200 |
commit | 33f06d33cc2f4cd3d36a9616f7f9e9abc7287080 (patch) | |
tree | 97754986db36d5d3082cadc92bc6b85c7f30ca9d /src/types.h | |
parent | 3c6ca071045f3ab2153db833c2be2b500a43880c (diff) |
Lua: Add "device_allocation_type" to support moving spells
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h index 5b349174..23df8af5 100644 --- a/src/types.h +++ b/src/types.h @@ -2442,6 +2442,24 @@ struct range_type /* + * Device allocation for skill + */ +typedef struct device_allocation device_allocation; +struct device_allocation +{ + byte tval; + s32b rarity; + range_type base_level; + range_type max_level; + /* Next device allocation in the list */ + device_allocation *next; +}; + +int compare_device_allocation(device_allocation *a, device_allocation *b); +SGLIB_DEFINE_LIST_PROTOTYPES(device_allocation, compare_device_allocation, next); + + +/* * Skills ! */ typedef struct skill_type skill_type; |