Browse Source

Added Beta 1.3 Items

Nick Loose 13 years ago
parent
commit
4fddca6e98
4 changed files with 25 additions and 10 deletions
  1. 18 10
      Classes/IJInventoryItem.m
  2. BIN
      Images/DataValuesV110.png
  3. BIN
      Images/DataValuesV110Transparent.png
  4. 7 0
      Items.csv

+ 18 - 10
Classes/IJInventoryItem.m

@@ -67,30 +67,38 @@
 	
 	int index = 0;
 	
-	if (itemId <= 92)
+	if (itemId <= 94)
 	{
-		if (itemId <= 25)
+		if (itemId <= 17){
 			index = itemId - 1; // first item is 1
-		else if (itemId == 35)
-			index = itemId - (35 - 25);
-		else if (itemId >= 37)
-			index = itemId - (37 - 26);
+		}
+		else if (itemId <= 35 ){
+			index = itemId + 1;
+		}
+		else if (itemId >= 37){
+			index = itemId + 6;
+		}
 		atlasOffset = NSMakePoint(36, 75);
 	}
-	else if (itemId >= 256 && itemId <= 355)
+	else if (itemId >= 256 && itemId <= 351)
 	{
 		index = itemId - 256;
-		atlasOffset = NSMakePoint(445, 23+52);
+		atlasOffset = NSMakePoint(445, 75);
+	}
+	else if (itemId >= 352 && itemId <= 356)
+	{
+		index = itemId - 241;
+		atlasOffset = NSMakePoint(445, 75);
 	}
 	else if (itemId == 2256)
 	{
 		index = 0;
-		atlasOffset = NSMakePoint(445, pixelsPerRow*12+17);
+		atlasOffset = NSMakePoint(445+pixelsPerColumn*8, pixelsPerRow*13 + 18);
 	}
 	else if (itemId == 2257)
 	{
 		index = 0;
-		atlasOffset = NSMakePoint(445+pixelsPerColumn, pixelsPerRow*12+17);
+		atlasOffset = NSMakePoint(445, pixelsPerRow*14+18);
 	}
 	else
 	{

BIN
Images/DataValuesV110.png


BIN
Images/DataValuesV110Transparent.png


+ 7 - 0
Items.csv

@@ -32,6 +32,10 @@
 42,Iron Block
 43,Double Step
 44,Step
+# 44,Stone Step, 0
+# 44,Sandstone Step, 1
+# 44,Wodden Step, 2
+# 44,Cobblestone Step, 3
 45,Brick
 46,TNT
 47,Bookcase
@@ -80,6 +84,8 @@
 90,Portal
 91,Jack-O-Lantern
 92,Cake Block
+93,Redstone Repeater (off)
+94,Redstone Repeater (on)
 256,Iron Spade
 257,Iron Pickaxe
 258,Iron Axe
@@ -197,5 +203,6 @@
 352,Bone
 353,Sugar
 354,Cake
+355,Bed
 2256,Gold Record
 2257,Green Record