Update src/main/java/com/gmail/nossr50/skills/Repair.java

This commit is contained in:
gmcferrin 2012-01-19 11:37:04 -05:00
parent 2854511252
commit b3782eddc3

View File

@ -16,6 +16,7 @@
*/ */
package com.gmail.nossr50.skills; package com.gmail.nossr50.skills;
import org.bukkit.Material;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.enchantments.Enchantment; import org.bukkit.enchantments.Enchantment;
@ -429,145 +430,156 @@ public class Repair {
* TOOLS * TOOLS
*/ */
//SHEARS //SHEARS
case 359: case 359:
ramt = 119; ramt = Material.SHEARS.getMaxDurability();
break; break;
//WOOD SWORD //WOOD SWORD
case 268: case 268:
ramt = 30; ramt = Material.WOOD_SWORD.getMaxDurability();
break; break;
//WOOD SHOVEL //WOOD SHOVEL
case 269: case 269:
ramt = 60; ramt = Material.WOOD_SPADE.getMaxDurability();
break; break;
//WOOD PICKAXE //WOOD PICKAXE
case 270: case 270:
ramt = 20; ramt = Material.WOOD_PICKAXE.getMaxDurability();
break; break;
//WOOD AXE //WOOD AXE
case 271: case 271:
ramt = 20; ramt = Material.WOOD_AXE.getMaxDurability();
break; break;
//WOOD HOE //WOOD HOE
case 290: case 290:
ramt = 30; ramt = Material.WOOD_HOE.getMaxDurability();
break; break;
//STONE SWORD //STONE SWORD
case 272: case 272:
ramt = 66; ramt = Material.STONE_SWORD.getMaxDurability();
break; break;
//STONE SHOVEL //STONE SHOVEL
case 273: case 273:
ramt = 132; ramt = Material.STONE_SPADE.getMaxDurability();
break; break;
//STONE PICKAXE //STONE PICKAXE
case 274: case 274:
ramt = 44; ramt = Material.STONE_PICKAXE.getMaxDurability();
break; break;
//STONE AXE //STONE AXE
case 275: case 275:
ramt = 44; ramt = Material.STONE_AXE.getMaxDurability();
break; break;
//STONE HOE //STONE HOE
case 291: case 291:
ramt = 66; ramt = Material.STONE_HOE.getMaxDurability();
break; break;
//GOLD SHOVEL //GOLD SHOVEL
case 284: case 284:
ramt = 33; ramt = Material.GOLD_SPADE.getMaxDurability();
break; break;
//IRON SHOVEL //IRON SHOVEL
case 256: case 256:
ramt = 251; ramt = Material.IRON_SPADE.getMaxDurability();
break; break;
//DIAMOND SHOVEL //DIAMOND SHOVEL
case 277: case 277:
ramt = 1562; ramt = Material.DIAMOND_SPADE.getMaxDurability();
break; break;
//IRON PICK //IRON PICK
case 257: case 257:
ramt = 84; ramt = Material.IRON_PICKAXE.getMaxDurability();
break; break;
//IRON AXE //IRON AXE
case 258: case 258:
ramt = 84; ramt = Material.IRON_AXE.getMaxDurability();
break; break;
//IRON SWORD //IRON SWORD
case 267: case 267:
ramt = 126; ramt = Material.IRON_SWORD.getMaxDurability();
break; break;
//IRON HOE //IRON HOE
case 292: case 292:
ramt = 126; ramt = Material.IRON_HOE.getMaxDurability();
break; break;
//DIAMOND SWORD //DIAMOND SWORD
case 276: case 276:
ramt = 781; ramt = Material.DIAMOND_SWORD.getMaxDurability();
break; break;
//DIAMOND PICK //DIAMOND PICK
case 278: case 278:
ramt = 521; ramt = Material.DIAMOND_PICKAXE.getMaxDurability();
break; break;
//DIAMOND AXE //DIAMOND AXE
case 279: case 279:
ramt = 521; ramt = Material.DIAMOND_AXE.getMaxDurability();
break; break;
//DIAMOND HOE //DIAMOND HOE
case 293: case 293:
ramt = 781; ramt = Material.DIAMOND_HOE.getMaxDurability();
break; break;
//GOLD SWORD //GOLD SWORD
case 283: case 283:
ramt = 17; ramt = Material.GOLD_SWORD.getMaxDurability();
break; break;
//GOLD PICK //GOLD PICK
case 285: case 285:
ramt = 11; ramt = Material.GOLD_PICKAXE.getMaxDurability();
break; break;
//GOLD AXE //GOLD AXE
case 286: case 286:
ramt = 11; ramt = Material.GOLD_AXE.getMaxDurability();
break; break;
//GOLD HOE //GOLD HOE
case 294: case 294:
ramt = 17; ramt = Material.GOLD_HOE.getMaxDurability();
break; break;
/* /*
* ARMOR * ARMOR
*/ */
case 306: case 306:
ramt = 27; ramt = 27;
break; break;
case 310: case 310:
ramt = 55; ramt = 55;
break; break;
case 307: case 307:
ramt = 24; ramt = 24;
break; break;
case 311: case 311:
ramt = 48; ramt = 48;
break; break;
case 308: case 308:
ramt = 27; ramt = 27;
break; break;
case 312: case 312:
ramt = 53; ramt = 53;
break; break;
case 309: case 309:
ramt = 40; ramt = 40;
break; break;
case 313: case 313:
ramt = 80; ramt = 80;
break; break;
case 314: case 314:
ramt = 13; ramt = 13;
break; break;
case 315: case 315:
ramt = 12; ramt = 12;
break; break;
case 316: case 316:
ramt = 14; ramt = 14;
break; break;
case 317: case 317:
ramt = 20; ramt = 20;
break; break;