armor-legendary.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. armor:register_armor('epic:crown', {
  2. description = 'Admin Crown',
  3. inventory_image = 'epic_crown_inv.png',
  4. groups = {armor_head=1, armor_use=0, armor_fire=5, armor_block=50, armor_water=5, physics_jump=0.5, physics_speed=1.3, armor_heal=20, armor_dmg_resist=50, not_in_creative_inventory=1},
  5. armor_groups = {fleshy=100},
  6. damage_groups = {cracky=2, snappy=1, level=3},
  7. on_drop = function(itemstack, dropper, pos)
  8. return
  9. end,
  10. })
  11. armor:register_armor('epic:cap_deception', {
  12. description = 'Fur Cap of Deception',
  13. inventory_image = 'epic_cap_deception_inv.png',
  14. groups = {armor_head=1, armor_use=300, armor_block=1, physics_jump=-0.12, physics_speed=-.1, armor_heal = 2, armor_dmg_resist=.5, not_in_creative_inventory=1},
  15. armor_groups = {fleshy=25},
  16. damage_groups = {cracky=2, snappy=1, level=3},
  17. })
  18. --Setting armor_use to 88 should yeild about 1000 uses.
  19. armor:register_armor('epic:amulet_of_speed', {
  20. description = 'Amulet of Speed\n+.75 Speed',
  21. inventory_image = 'epic_amulet_speed.png',
  22. texture = 'epic_blank.png',
  23. preview = 'epic_blank.png',
  24. groups = {armor_amulet=1, armor_use=88, physics_speed=.75, armor_dmg_resist=.5, not_in_creative_inventory=1},
  25. reciprocate_damage = true,
  26. armor_groups = {fleshy=1},
  27. damage_groups = {cracky=2, snappy=1, level=3},
  28. })
  29. --Setting armor_use to 88 should yeild about 1000 uses.
  30. armor:register_armor('epic:gloves_of_speed', {
  31. description = 'Gloves of Speed',
  32. inventory_image = 'epic_gloves_speed.png',
  33. texture = 'epic_blank.png',
  34. preview = 'epic_blank.png',
  35. groups = {armor_gloves=1, armor_use=88, physics_speed=.75, armor_dmg_resist=.5, not_in_creative_inventory=1},
  36. armor_groups = {fleshy=1},
  37. damage_groups = {cracky=2, snappy=1, level=3},
  38. })
  39. --Setting armor_use to 88 should yeild about 1000 uses.
  40. armor:register_armor('epic:ring_of_speed', {
  41. description = 'Ring of Speed\n+.75 Speed',
  42. inventory_image = 'epic_ring_speed.png',
  43. texture = 'epic_blank.png',
  44. preview = 'epic_blank.png',
  45. groups = {armor_ring=1, armor_use=88, physics_speed=.75, armor_dmg_resist=.5, not_in_creative_inventory=1},
  46. armor_groups = {fleshy=1},
  47. damage_groups = {cracky=2, snappy=1, level=3},
  48. })
  49. armor:register_armor('epic:ring_of_health', {
  50. description = 'Ring of Health\n+10 MaxHP',
  51. inventory_image = 'epic_ring_health.png',
  52. texture = 'epic_blank.png',
  53. preview = 'epic_blank.png',
  54. groups = {armor_ring=1, armor_use=88, armor_dmg_resist=.5, not_in_creative_inventory=1},
  55. armor_groups = {fleshy=1},
  56. damage_groups = {cracky=2, snappy=1, level=3},
  57. on_equip = function(player, index, stack)
  58. maxhp.max_hp_change(player, 10)
  59. end,
  60. on_unequip = function(player, index, stack)
  61. maxhp.max_hp_change(player, -10)
  62. end,
  63. on_destroy = function(player, index, stack)
  64. maxhp.max_hp_change(player, -10)
  65. end,
  66. })