Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void damageEntity(int i)
- {
- int j = 25 - 0;
- if(armorValue == "diamond"){ j = 25 - 16; } else
- if(armorValue == "gold"){ j = 25 - 8; } else
- if(armorValue == "iron"){ j = 25 - 8; } else
- if(armorValue == "leather"){ j = 25 - 4; }
- int k = i * j + damageRemainder;
- damageRemainder = k % 25;
- if(armorValue != "null" && armorAmount > 0)
- {
- armorAmount--;
- }
- if(armorValue != "null" && armorAmount <= 0)
- {
- armorValue = "null";
- }
- i = k / 25;
- super.damageEntity(i);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement