Fixed data types in IJInventoryItem to be signed and allow negative values.

This commit is contained in:
preble 2010-12-14 22:29:56 -05:00
parent 0cccfddd34
commit 99951a46e0
2 changed files with 9 additions and 8 deletions

View File

@ -18,15 +18,15 @@
@interface IJInventoryItem : NSObject <NSCoding> {
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;

View File

@ -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