--[[
Four tiers for each perk, naming should stay the same on all. Values will likely change from one perk to another.
Tiers 1-4 are craftable, output depending on chance and available relics.
group relic_general is applied to every item. (group values can be positive or negative)
group relic_perk is only applied to items with that specific perk. (group values can be positive or negative)
Tier 5 is only available during a full moon. Full moon just adds one tier to whatever value was randomly
selected by code. Meaning a tier four turns into tier five during a full moon, only happens at night though.

tier 1: Poor (type) Ring of (perk) (.1)
tier 2: Mediocre (type) Ring of (perk) (.2)
tier 3: Good (type) Ring of (perk) (.3)
tier 4: Great (type) Ring of (perk) (.5)
tier 5: Epic (type) Ring of (perk) (.75)
tier 6: Legendary
tier 7: Heirloom

Background colors for easy level distinction: Should we ever need to go higher than five tiers.
Grey, White, Green, Blue, Purple, Orange, Yellow

]]
minetest.register_craftitem('armor:ring_gol', {
   description = 'Golden Ring',
   inventory_image = 'armor_ring_gold.png'
})

minetest.register_craftitem('armor:ring_tit', {
   description = 'Titanium Ring',
   inventory_image = 'armor_ring_titanium.png'
})

------------------------------------------------------------------------------------------
--CRAFTING--

local rings = {
   {'gol', 'epic:huntite', 'fire'},
   {'gol', 'epic:float_crystal', 'gravity'},
   {'gol', 'epic:bloodstone', 'healing'},
   {'gol', 'ocean:prismarine_crystals', 'water'},
   {'gol', 'epic:garnet', 'speed'},
   {'gol', 'quartz:quartz_crystal_piece', 'jump'},
   {'tit', 'epic:huntite', 'fire'},
   {'tit', 'epic:float_crystal', 'gravity'},
   {'tit', 'epic:bloodstone', 'healing'},
   {'tit', 'ocean:prismarine_crystals', 'water'},
   {'tit', 'epic:garnet', 'speed'},
   {'tit', 'quartz:quartz_crystal_piece', 'jump'},
}

for i in ipairs (rings) do
   local input = rings[i][1]
   local jewel = rings[i][2]
   local perk = rings[i][3]

   unified_inventory.register_craft({
      type = 'jewelry',
      items = {'armor:ring_'..input, jewel, 'default:mese_crystal', 'mobs:lava_orb'},
      output = 'armor:ring_'..input..'_'..perk..'_1'
   })
end

------------------------------------------------------------------------------------------
--
--GOLD--
--
------------------------------------------------------------------------------------------
--FIRE--
armor:register_armor('armor:ring_gol_fire_1', {
   _doc_items_create_entry = false,
   description = 'Poor Golden Ring of Fire\n+.1 Fire',
   inventory_image = 'armor_ring_gold.png^armor_ring_fire.png^armor_ring_level_1.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_fire=.1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_fire_2', {
   _doc_items_create_entry = false,
   description = 'Mediocre Golden Ring of Fire\n+.2 Fire',
   inventory_image = 'armor_ring_gold.png^armor_ring_fire.png^armor_ring_level_2.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_fire=.2, flammable=1, not_in_creative_inventory=1, relic_fire=2, relic_general=-1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_fire_3', {
   _doc_items_create_entry = false,
   description = 'Good Golden Ring of Fire\n+.3 Fire',
   inventory_image = 'armor_ring_gold.png^armor_ring_fire.png^armor_ring_level_3.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_fire=.3, flammable=1, not_in_creative_inventory=1, relic_fire=4, relic_general=-2},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_fire_4', {
   _doc_items_create_entry = false,
   description = 'Great Golden Ring of Fire\n+.5 Fire',
   inventory_image = 'armor_ring_gold.png^armor_ring_fire.png^armor_ring_level_4.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_fire=.5, flammable=1, not_in_creative_inventory=1, relic_fire=6, relic_general=-3},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_fire_5', {
   _doc_items_create_entry = false,
   description = 'Epic Golden Ring of Fire\n+.75 Fire',
   inventory_image = 'armor_ring_gold.png^armor_ring_fire.png^armor_ring_level_5.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_fire=.75, flammable=1, not_in_creative_inventory=1, relic_fire=8, relic_general=-4},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

------------------------------------------------------------------------------------------
--GRAVITY
armor:register_armor('armor:ring_gol_gravity_1', {
   _doc_items_create_entry = false,
   description = 'Poor Golden Ring of Gravity\n-.05 Gravity',
   inventory_image = 'armor_ring_gold.png^armor_ring_gravity.png^armor_ring_level_1.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_gravity=-.05},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_gravity_2', {
   _doc_items_create_entry = false,
   description = 'Mediocre Golden Ring of Gravity\n-.1 Gravity',
   inventory_image = 'armor_ring_gold.png^armor_ring_gravity.png^armor_ring_level_2.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_gravity=-.1, not_in_creative_inventory=1, relic_gravity=2, relic_general=-1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_gravity_3', {
   _doc_items_create_entry = false,
   description = 'Good Golden Ring of Gravity\n-.15 Gravity',
   inventory_image = 'armor_ring_gold.png^armor_ring_gravity.png^armor_ring_level_3.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_gravity=-.15, not_in_creative_inventory=1, relic_gravity=4, relic_general=-2},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_gravity_4', {
   _doc_items_create_entry = false,
   description = 'Great Golden Ring of Gravity\n-.2 Gravity',
   inventory_image = 'armor_ring_gold.png^armor_ring_gravity.png^armor_ring_level_4.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_gravity=-.2, not_in_creative_inventory=1, relic_gravity=6, relic_general=-3},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_gravity_5', {
   _doc_items_create_entry = false,
   description = 'Epic Golden Ring of Gravity\n-.25 Gravity',
   inventory_image = 'armor_ring_gold.png^armor_ring_gravity.png^armor_ring_level_5.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_gravity=-.25, not_in_creative_inventory=1, relic_gravity=8, relic_general=-4},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

------------------------------------------------------------------------------------------
--HEALING
armor:register_armor('armor:ring_gol_healing_1', {
   _doc_items_create_entry = false,
   description = 'Poor Golden Ring of Healing\n+.25 Healing',
   inventory_image = 'armor_ring_gold.png^armor_ring_healing.png^armor_ring_level_1.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_heal=.25},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_healing_2', {
   _doc_items_create_entry = false,
   description = 'Mediocre Golden Ring of Healing\n+.5 Healing',
   inventory_image = 'armor_ring_gold.png^armor_ring_healing.png^armor_ring_level_2.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_heal=.5, not_in_creative_inventory=1, relic_healing=2, relic_general=-1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_healing_3', {
   _doc_items_create_entry = false,
   description = 'Good Golden Ring of Healing\n+.75 Healing',
   inventory_image = 'armor_ring_gold.png^armor_ring_healing.png^armor_ring_level_3.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_heal=.75, not_in_creative_inventory=1, relic_healing=4, relic_general=-2},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_healing_4', {
   _doc_items_create_entry = false,
   description = 'Great Golden Ring of Healing\n+1 Healing',
   inventory_image = 'armor_ring_gold.png^armor_ring_healing.png^armor_ring_level_4.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_heal=1, not_in_creative_inventory=1, relic_healing=6, relic_general=-3},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_healing_5', {
   _doc_items_create_entry = false,
   description = 'Epic Golden Ring of Healing\n+1.25 Healing',
   inventory_image = 'armor_ring_gold.png^armor_ring_healing.png^armor_ring_level_5.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_heal=1.25, not_in_creative_inventory=1, relic_healing=8, relic_general=-4},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

------------------------------------------------------------------------------------------
--JUMP
armor:register_armor('armor:ring_gol_jump_1', {
   _doc_items_create_entry = false,
   description = 'Poor Golden Ring of Jump\n+.05 Jump',
   inventory_image = 'armor_ring_gold.png^armor_ring_jump.png^armor_ring_level_1.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_jump=.05},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_jump_2', {
   _doc_items_create_entry = false,
   description = 'Mediocre Golden Ring of Jump\n+.1 Jump',
   inventory_image = 'armor_ring_gold.png^armor_ring_jump.png^armor_ring_level_2.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_jump=.1, not_in_creative_inventory=1, relic_jump=2, relic_general=-1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_jump_3', {
   _doc_items_create_entry = false,
   description = 'Good Golden Ring of Jump\n+.15 Jump',
   inventory_image = 'armor_ring_gold.png^armor_ring_jump.png^armor_ring_level_3.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_jump=.15, not_in_creative_inventory=1, relic_jump=4, relic_general=-2},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_jump_4', {
   _doc_items_create_entry = false,
   description = 'Great Golden Ring of Jump\n+.2 Jump',
   inventory_image = 'armor_ring_gold.png^armor_ring_jump.png^armor_ring_level_4.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_jump=.2, not_in_creative_inventory=1, relic_jump=6, relic_general=-3},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_jump_5', {
   _doc_items_create_entry = false,
   description = 'Epic Golden Ring of Jump\n+.25 Jump',
   inventory_image = 'armor_ring_gold.png^armor_ring_jump.png^armor_ring_level_5.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_jump=.25, not_in_creative_inventory=1, relic_jump=8, relic_general=-4},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

------------------------------------------------------------------------------------------
--SPEED
armor:register_armor('armor:ring_gol_speed_1', {
   _doc_items_create_entry = false,
   description = 'Poor Golden Ring of Speed\n+.1 Speed',
   inventory_image = 'armor_ring_gold.png^armor_ring_speed.png^armor_ring_level_1.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_speed=.1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_speed_2', {
   _doc_items_create_entry = false,
   description = 'Mediocre Golden Ring of Speed\n+.2 Speed',
   inventory_image = 'armor_ring_gold.png^armor_ring_speed.png^armor_ring_level_2.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_speed=.2, not_in_creative_inventory=1, relic_speed=2, relic_general=-1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_speed_3', {
   _doc_items_create_entry = false,
   description = 'Good Golden Ring of Speed\n+.3 Speed',
   inventory_image = 'armor_ring_gold.png^armor_ring_speed.png^armor_ring_level_3.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_speed=.3, not_in_creative_inventory=1, relic_speed=4, relic_general=-2},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_speed_4', {
   _doc_items_create_entry = false,
   description = 'Great Golden Ring of Speed\n+.5 Speed',
   inventory_image = 'armor_ring_gold.png^armor_ring_speed.png^armor_ring_level_4.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_speed=.5, not_in_creative_inventory=1, relic_speed=6, relic_general=-3},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_speed_5', {
   _doc_items_create_entry = false,
   description = 'Epic Golden Ring of Speed\n+.75 Speed',
   inventory_image = 'armor_ring_gold.png^armor_ring_speed.png^armor_ring_level_5.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, physics_speed=.75, not_in_creative_inventory=1, relic_speed=8, relic_general=-4},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

------------------------------------------------------------------------------------------
--WATER
armor:register_armor('armor:ring_gol_water_1', {
   _doc_items_create_entry = false,
   description = 'Poor Golden Ring of Underwater Breathing\n+.1 Oxygen',
   inventory_image = 'armor_ring_gold.png^armor_ring_water.png^armor_ring_level_1.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_water=.1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_water_2', {
   _doc_items_create_entry = false,
   description = 'Mediocre Golden Ring of Underwater Breathing\n+.2 Oxygen',
   inventory_image = 'armor_ring_gold.png^armor_ring_water.png^armor_ring_level_2.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_water=.2, not_in_creative_inventory=1, relic_water=2, relic_general=-1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_water_3', {
   _doc_items_create_entry = false,
   description = 'Good Golden Ring of Underwater Breathing\n+.3 Oxygen',
   inventory_image = 'armor_ring_gold.png^armor_ring_water.png^armor_ring_level_3.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_water=.3, not_in_creative_inventory=1, relic_water=4, relic_general=-2},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_water_4', {
   _doc_items_create_entry = false,
   description = 'Great Golden Ring of Underwater Breathing\n+.4 Oxygen',
   inventory_image = 'armor_ring_gold.png^armor_ring_water.png^armor_ring_level_4.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_water=.4, not_in_creative_inventory=1, relic_water=6, relic_general=-3},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_gol_water_5', {
   _doc_items_create_entry = false,
   description = 'Epic Golden Ring of Underwater Breathing\n+.5 Oxygen',
   inventory_image = 'armor_ring_gold.png^armor_ring_water.png^armor_ring_level_5.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=100, armor_water=.5, not_in_creative_inventory=1, relic_water=8, relic_general=-4},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

------------------------------------------------------------------------------------------
--
--TITANIUM--
--
------------------------------------------------------------------------------------------
--FIRE--
armor:register_armor('armor:ring_tit_fire_1', {
   _doc_items_create_entry = false,
   description = 'Poor Titanium Ring of Fire\n+.1 Fire',
   inventory_image = 'armor_ring_titanium.png^armor_ring_fire.png^armor_ring_level_1.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_fire=.1, flammable=1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_fire_2', {
   _doc_items_create_entry = false,
   description = 'Mediocre Titanium Ring of Fire\n+.2 Fire',
   inventory_image = 'armor_ring_titanium.png^armor_ring_fire.png^armor_ring_level_2.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_fire=.2, flammable=1, not_in_creative_inventory=1, relic_fire=2, relic_general=-1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_fire_3', {
   _doc_items_create_entry = false,
   description = 'Good Titanium Ring of Fire\n+.3 Fire',
   inventory_image = 'armor_ring_titanium.png^armor_ring_fire.png^armor_ring_level_3.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_fire=.3, flammable=1, not_in_creative_inventory=1, relic_fire=4, relic_general=-2},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_fire_4', {
   _doc_items_create_entry = false,
   description = 'Great Titanium Ring of Fire\n+.5 Fire',
   inventory_image = 'armor_ring_titanium.png^armor_ring_fire.png^armor_ring_level_4.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_fire=.5, flammable=1, not_in_creative_inventory=1, relic_fire=6, relic_general=-3},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_fire_5', {
   _doc_items_create_entry = false,
   description = 'Epic Titanium Ring of Fire\n+.75 Fire',
   inventory_image = 'armor_ring_titanium.png^armor_ring_fire.png^armor_ring_level_5.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_fire=.75, flammable=1, not_in_creative_inventory=1, relic_fire=8, relic_general=-4},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

------------------------------------------------------------------------------------------
--GRAVITY
armor:register_armor('armor:ring_tit_gravity_1', {
   _doc_items_create_entry = false,
   description = 'Poor Titanium Ring of Gravity\n-.05 Gravity',
   inventory_image = 'armor_ring_titanium.png^armor_ring_gravity.png^armor_ring_level_1.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_gravity=-.05},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_gravity_2', {
   _doc_items_create_entry = false,
   description = 'Mediocre Titanium Ring of Gravity\n-.1 Gravity',
   inventory_image = 'armor_ring_titanium.png^armor_ring_gravity.png^armor_ring_level_2.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_gravity=-.1, not_in_creative_inventory=1, relic_gravity=2, relic_general=-1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_gravity_3', {
   _doc_items_create_entry = false,
   description = 'Good Titanium Ring of Gravity\n-.15 Gravity',
   inventory_image = 'armor_ring_titanium.png^armor_ring_gravity.png^armor_ring_level_3.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_gravity=-.15, not_in_creative_inventory=1, relic_gravity=4, relic_general=-2},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_gravity_4', {
   _doc_items_create_entry = false,
   description = 'Great Titanium Ring of Gravity\n-.2 Gravity',
   inventory_image = 'armor_ring_titanium.png^armor_ring_gravity.png^armor_ring_level_4.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_gravity=-.2, not_in_creative_inventory=1, relic_gravity=6, relic_general=-3},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_gravity_5', {
   _doc_items_create_entry = false,
   description = 'Epic Titanium Ring of Gravity\n-.25 Gravity',
   inventory_image = 'armor_ring_titanium.png^armor_ring_gravity.png^armor_ring_level_5.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_gravity=-.25, not_in_creative_inventory=1, relic_gravity=8, relic_general=-4},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

------------------------------------------------------------------------------------------
--HEALING
armor:register_armor('armor:ring_tit_healing_1', {
   _doc_items_create_entry = false,
   description = 'Poor Titanium Ring of Healing\n+.25 Healing',
   inventory_image = 'armor_ring_titanium.png^armor_ring_healing.png^armor_ring_level_1.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_heal=.25},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_healing_2', {
   _doc_items_create_entry = false,
   description = 'Mediocre Titanium Ring of Healing\n+.5 Healing',
   inventory_image = 'armor_ring_titanium.png^armor_ring_healing.png^armor_ring_level_2.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_heal=.5, not_in_creative_inventory=1, relic_healing=2, relic_general=-1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_healing_3', {
   _doc_items_create_entry = false,
   description = 'Good Titanium Ring of Healing\n+.75 Healing',
   inventory_image = 'armor_ring_titanium.png^armor_ring_healing.png^armor_ring_level_3.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_heal=.75, not_in_creative_inventory=1, relic_healing=4, relic_general=-2},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_healing_4', {
   _doc_items_create_entry = false,
   description = 'Great Titanium Ring of Healing\n+1 Healing',
   inventory_image = 'armor_ring_titanium.png^armor_ring_healing.png^armor_ring_level_4.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_heal=1, not_in_creative_inventory=1, relic_healing=6, relic_general=-3},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_healing_5', {
   _doc_items_create_entry = false,
   description = 'Epic Titanium Ring of Healing\n+1.25 Healing',
   inventory_image = 'armor_ring_titanium.png^armor_ring_healing.png^armor_ring_level_5.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_heal=1.25, not_in_creative_inventory=1, relic_healing=8, relic_general=-4},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

------------------------------------------------------------------------------------------
--JUMP
armor:register_armor('armor:ring_tit_jump_1', {
   _doc_items_create_entry = false,
   description = 'Poor Titanium Ring of Jump\n+.05 Jump',
   inventory_image = 'armor_ring_titanium.png^armor_ring_jump.png^armor_ring_level_1.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_jump=.05},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_jump_2', {
   _doc_items_create_entry = false,
   description = 'Mediocre Titanium Ring of Jump\n+.1 Jump',
   inventory_image = 'armor_ring_titanium.png^armor_ring_jump.png^armor_ring_level_2.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_jump=.1, not_in_creative_inventory=1, relic_jump=2, relic_general=-1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_jump_3', {
   _doc_items_create_entry = false,
   description = 'Good Titanium Ring of Jump\n+.15 Jump',
   inventory_image = 'armor_ring_titanium.png^armor_ring_jump.png^armor_ring_level_3.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_jump=.15, not_in_creative_inventory=1, relic_jump=4, relic_general=-2},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_jump_4', {
   _doc_items_create_entry = false,
   description = 'Great Titanium Ring of Jump\n+.2 Jump',
   inventory_image = 'armor_ring_titanium.png^armor_ring_jump.png^armor_ring_level_4.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_jump=.2, not_in_creative_inventory=1, relic_jump=6, relic_general=-3},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_jump_5', {
   _doc_items_create_entry = false,
   description = 'Epic Titanium Ring of Jump\n+.25 Jump',
   inventory_image = 'armor_ring_titanium.png^armor_ring_jump.png^armor_ring_level_5.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_jump=.25, not_in_creative_inventory=1, relic_jump=8, relic_general=-4},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

------------------------------------------------------------------------------------------
--SPEED
armor:register_armor('armor:ring_tit_speed_1', {
   _doc_items_create_entry = false,
   description = 'Poor Titanium Ring of Speed\n+.1 Speed',
   inventory_image = 'armor_ring_titanium.png^armor_ring_speed.png^armor_ring_level_1.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_speed=.1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_speed_2', {
   _doc_items_create_entry = false,
   description = 'Mediocre Titanium Ring of Speed\n+.2 Speed',
   inventory_image = 'armor_ring_titanium.png^armor_ring_speed.png^armor_ring_level_2.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_speed=.2, not_in_creative_inventory=1, relic_speed=2, relic_general=-1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_speed_3', {
   _doc_items_create_entry = false,
   description = 'Good Titanium Ring of Speed\n+.3 Speed',
   inventory_image = 'armor_ring_titanium.png^armor_ring_speed.png^armor_ring_level_3.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_speed=.3, not_in_creative_inventory=1, relic_speed=4, relic_general=-2},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_speed_4', {
   _doc_items_create_entry = false,
   description = 'Great Titanium Ring of Speed\n+.5 Speed',
   inventory_image = 'armor_ring_titanium.png^armor_ring_speed.png^armor_ring_level_4.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_speed=.5, not_in_creative_inventory=1, relic_speed=6, relic_general=-3},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_speed_5', {
   _doc_items_create_entry = false,
   description = 'Epic Titanium Ring of Speed\n+.75 Speed',
   inventory_image = 'armor_ring_titanium.png^armor_ring_speed.png^armor_ring_level_5.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, physics_speed=.75, not_in_creative_inventory=1, relic_speed=8, relic_general=-4},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

------------------------------------------------------------------------------------------
--WATER
armor:register_armor('armor:ring_tit_water_1', {
   _doc_items_create_entry = false,
   description = 'Poor Titanium Ring of Underwater Breathing\n+.1 Oxygen',
   inventory_image = 'armor_ring_titanium.png^armor_ring_water.png^armor_ring_level_1.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_water=.1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_water_2', {
   _doc_items_create_entry = false,
   description = 'Mediocre Titanium Ring of Underwater Breathing\n+.2 Oxygen',
   inventory_image = 'armor_ring_titanium.png^armor_ring_water.png^armor_ring_level_2.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_water=.2, not_in_creative_inventory=1, relic_water=2, relic_general=-1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_water_3', {
   _doc_items_create_entry = false,
   description = 'Good Titanium Ring of Underwater Breathing\n+.3 Oxygen',
   inventory_image = 'armor_ring_titanium.png^armor_ring_water.png^armor_ring_level_3.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_water=.3, not_in_creative_inventory=1, relic_water=4, relic_general=-2},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_water_4', {
   _doc_items_create_entry = false,
   description = 'Great Titanium Ring of Underwater Breathing\n+.4 Oxygen',
   inventory_image = 'armor_ring_titanium.png^armor_ring_water.png^armor_ring_level_4.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_water=.4, not_in_creative_inventory=1, relic_water=6, relic_general=-3},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring_tit_water_5', {
   _doc_items_create_entry = false,
   description = 'Epic Titanium Ring of Underwater Breathing\n+.5 Oxygen',
   inventory_image = 'armor_ring_titanium.png^armor_ring_water.png^armor_ring_level_5.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=75, armor_water=.5, not_in_creative_inventory=1, relic_water=8, relic_general=-4},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

------------------------------------------------------------------------------------------

--These following items should be removed June 2021
armor:register_armor('armor:ring00', {
   _doc_items_create_entry = false,
   description = 'Ring of Lesser Gravity\n-.15 Gravity',
   inventory_image = 'armor_ring00.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=1, physics_gravity=-.15, not_in_creative_inventory=1, relic_speed=10},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring01', {
   _doc_items_create_entry = false,
   description = 'Lesser Ring of Speed\n+.15 Speed',
   inventory_image = 'armor_ring01.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=1, physics_speed=.15, not_in_creative_inventory=1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})

armor:register_armor('armor:ring02', {
   _doc_items_create_entry = false,
   description = 'Lesser Ring of Jump\n+.2 Jump',
   inventory_image = 'armor_ring02.png',
   texture = 'epic_blank.png',
   preview = 'epic_blank.png',
   groups = {armor_ring=1, armor_use=1, physics_jump=.2, not_in_creative_inventory=1},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=3},
})
