Browse Source

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

preble 13 years ago
parent
commit
99951a46e0
2 changed files with 9 additions and 8 deletions
  1. 8 8
      Classes/IJInventoryItem.h
  2. 1 0
      README.markdown

+ 8 - 8
Classes/IJInventoryItem.h

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

+ 1 - 0
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