Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. protected void damageEntity(int i)
  2. {
  3. int j = 25 - 0;
  4. if(armorValue == "diamond"){ j = 25 - 16; } else
  5. if(armorValue == "gold"){ j = 25 - 8; } else
  6. if(armorValue == "iron"){ j = 25 - 8; } else
  7. if(armorValue == "leather"){ j = 25 - 4; }
  8. int k = i * j + damageRemainder;
  9. damageRemainder = k % 25;
  10. if(armorValue != "null" && armorAmount > 0)
  11. {
  12. armorAmount--;
  13. }
  14. if(armorValue != "null" && armorAmount <= 0)
  15. {
  16. armorValue = "null";
  17. }
  18. i = k / 25;
  19. super.damageEntity(i);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement