package mud.objects.items;

public enum ArmorType {

	/* Type, Name, Cost, Armor Bonus, Dexterity Bonus, Armor Check, Weight */
	/*               Type         Name               Cost                        AB DB  AC   SPF WHT */
	PADDED(          Type.LIGHT,  "Padded",          new int[] { 0, 0, 5, 0 },    1, 8,  0, 0.05, 10), 
	LEATHER(         Type.LIGHT,  "Leather",         new int[] { 0, 0, 10, 0 },   2, 6,  0, 0.10, 15), 
	STUDDED_LEATHER( Type.LIGHT,  "Studded Leather", new int[] { 0, 0, 25, 0},    3, 5, -1, 0.15, 20),
	CHAIN_SHIRT(     Type.LIGHT,  "Chain Shirt",     new int[] { 0, 0, 100, 0 },  4, 4, -2, 0.20, 25),
	
	HIDE(            Type.MEDIUM, "Hide",            new int[] { 0, 0, 15, 0 },   3, 4, -3, 0.20, 25),
	SCALE_MAIL(      Type.MEDIUM, "Scale Mail",      new int[] { 0, 0, 50, 0 },   4, 3, -4, 0.25, 30),
	CHAIN_MAIL(      Type.MEDIUM, "Chain Mail",      new int[] { 0, 0, 150, 0},   5, 2, -5, 0.30, 40),
	BREAST_PLATE(    Type.MEDIUM, "Breastplate",     new int[] { 0, 0, 200, 0 },  5, 3, -4, 0.25, 30),
	
	SPLINT_MAIL(     Type.HEAVY,  "Splint Mail",     new int[] { 0, 0, 200, 0 },  6, 0, -7, 0.40, 45),
	BANDED_MAIL(     Type.HEAVY,  "Banded Mail",     new int[] { 0, 0, 250, 0 },  6, 1, -6, 0.35, 35),
	HALF_PLATE(      Type.HEAVY,  "Half Plate",      new int[] { 0, 0, 600, 0 },  7, 0, -7, 0.40, 50),
	FULL_PLATE(      Type.HEAVY,  "Full Plate",      new int[] { 0, 0, 1500, 0 }, 8, 1, -6, 0.35, 50);

	public static enum Type { LIGHT, MEDIUM, HEAVY };
	
	private Type type;
	private String name;
	private int armBonus;
	private int dexBonus;
	private int ac;
	private double spellFailure; // percentage: 0.95 = 95%
	private double weight;

	ArmorType(Type type, String name, int[] cost, int armBonus, int dexBonus, int ac, double spellFailure, double weight) {
		this.type = type;
		this.name = name;
		this.armBonus = armBonus;
		this.dexBonus = dexBonus;
		this.ac = ac;
		this.spellFailure = spellFailure;
		this.weight = weight;
	}
	
	public Type getType() {
		return this.type;
	}
	
	public String getName() {
		return this.name;
	}
	
	public int getArmBonus() {
		return this.armBonus;
	}
	
	public int getDexBonus() {
		return this.dexBonus;
	}
	
	public int getAC() {
		return this.ac;
	}
	
	public double getSpellFailure() {
		return this.spellFailure;
	}

	public double getWeight() {
		return this.weight;
	}
	
	public String toString() {
		return this.name;
	}
}
@@ -114,16 +114,30 @@
 r Check,
+ Speed Factor,
  Weight 
@@ -198,35 +198,37 @@
 Cost        
+P  G
      
-    
+S
   
+C
      AB DB  
@@ -234,14 +234,14 @@
  AC 
-  
 SPF 
+  
 WHT 
@@ -313,20 +313,21 @@
  0, 
-0, 5
+5,    0
 , 0 %7D,
-  
   1,
@@ -412,20 +412,22 @@
 %5B%5D %7B 0, 
+1
 0, 
-1
+  
 0, 0 %7D, 
@@ -427,17 +427,16 @@
 , 0 %7D,  
- 
 2, 6,  0
@@ -518,21 +518,22 @@
 %7B 0,
- 0,
  25,
+  
  0
-%7D
 , 
- 
+0 %7D,
   3,
@@ -617,21 +617,22 @@
 %5B%5D %7B 0, 
+10
 0, 
-10
+ 
 0, 0 %7D, 
@@ -726,20 +726,21 @@
  0, 
-0, 15
+15,   0
 , 0 %7D,
- 
   3,
@@ -828,20 +828,21 @@
  0, 
+5
 0, 
-5
+  
 0, 0 %7D,
- 
   4,
@@ -926,21 +926,22 @@
 %5B%5D %7B 0, 
+15
 0, 
-15
+ 
 0, 0%7D,  
@@ -1020,37 +1020,38 @@
  new int%5B%5D %7B 0, 
+20
 0, 
-20
+ 
 0, 0 %7D,  5, 3, -
@@ -1133,21 +1133,22 @@
 %5B%5D %7B 0, 
+20
 0, 
-20
+ 
 0, 0 %7D, 
@@ -1235,21 +1235,22 @@
 %5B%5D %7B 0, 
+25
 0, 
-25
+ 
 0, 0 %7D, 
@@ -1341,13 +1341,14 @@
  0, 
+60
 0, 
-60
+ 
 0, 0
@@ -1443,21 +1443,22 @@
  0, 
-0, 
 150
+0, 
 0, 0 %7D,
+ 
  8, 
@@ -2502,8 +2502,9 @@
 ;%0D%0A%09%7D%0D%0A%7D
+%0A

Update ArmorType.java