Skip to content
Snippets Groups Projects
Commit c6ed080b authored by Chris Davidson's avatar Chris Davidson
Browse files

Prevent crafting with the same ring over and over

parent 84d289fc
No related branches found
No related tags found
1 merge request!594WIP 1.6.5 misc
......@@ -28,13 +28,14 @@ local imbueEgo = function(gem, ring)
wielder = table.clone(gem.imbue_powers, true),
been_imbued = true,
egoed = true,
shop_gem_imbue=true,
}
if gem.talent_on_spell then ego.talent_on_spell = table.clone(gem.talent_on_spell, true) end -- Its really weird that this table structure is different for one property
game.zone:applyEgo(ring, ego, "object", true)
end
local imbue_ring = function(npc, player)
player:showInventory("Imbue which ring?", player:getInven("INVEN"), function(o) return o.type == "jewelry" and o.subtype == "ring" and o.material_level and not o.unique and not o.plot and not o.special and not o.tinker end, function(ring, ring_item)
player:showInventory("Imbue which ring?", player:getInven("INVEN"), function(o) return o.type == "jewelry" and o.subtype == "ring" and o.material_level and not o.unique and not o.plot and not o.special and not o.tinker and not o.shop_gem_imbue end, function(ring, ring_item)
player:showInventory("Use which gem?", player:getInven("INVEN"), function(gem) return gem.type == "gem" and gem.imbue_powers and gem.material_level end, function(gem, gem_item)
local lev = (ring.material_level + gem.material_level) / 2 * 10 + 10 -- Average the material level then add a bonus so we guarantee greater ego level range
local new_ring
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment