From 99951a46e049ee9cc3c3feaa758a10091e3e084b Mon Sep 17 00:00:00 2001 From: preble Date: Tue, 14 Dec 2010 22:29:56 -0500 Subject: [PATCH] Fixed data types in IJInventoryItem to be signed and allow negative values. --- Classes/IJInventoryItem.h | 16 ++++++++-------- README.markdown | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Classes/IJInventoryItem.h b/Classes/IJInventoryItem.h index 835a33a..3bfd510 100644 --- a/Classes/IJInventoryItem.h +++ b/Classes/IJInventoryItem.h @@ -18,15 +18,15 @@ @interface IJInventoryItem : NSObject { - uint16_t itemId; - uint16_t damage; - uint8_t count; - uint8_t slot; + int16_t itemId; + int16_t damage; + int8_t count; + int8_t slot; } -@property (nonatomic, assign) uint16_t itemId; -@property (nonatomic, assign) uint16_t damage; -@property (nonatomic, assign) uint8_t count; -@property (nonatomic, assign) uint8_t slot; +@property (nonatomic, assign) int16_t itemId; +@property (nonatomic, assign) int16_t damage; +@property (nonatomic, assign) int8_t count; +@property (nonatomic, assign) int8_t slot; @property (nonatomic, readonly) NSString *itemName; @property (nonatomic, readonly) NSImage *image; diff --git a/README.markdown b/README.markdown index d211cfa..f5abbf2 100644 --- a/README.markdown +++ b/README.markdown @@ -35,6 +35,7 @@ After changing your inventory you will need to save the currently open world usi #### Unreleased (changes not in the binary builds) +- Inside Job now allows negative damage values (such as -1000) to create indestructible items. - Streamlined keyboard item-adding: search with Command-F, down arrow to navigate to item, then return adds it to the first available inventory slot. #### 1.0.1 - November 2, 2010