@@ -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,
}
ifgem.talent_on_spellthenego.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
localimbue_ring=function(npc,player)
player:showInventory("Imbue which ring?",player:getInven("INVEN"),function(o)returno.type=="jewelry"ando.subtype=="ring"ando.material_levelandnoto.uniqueandnoto.plotandnoto.specialandnoto.tinkerend,function(ring,ring_item)
player:showInventory("Imbue which ring?",player:getInven("INVEN"),function(o)returno.type=="jewelry"ando.subtype=="ring"ando.material_levelandnoto.uniqueandnoto.plotandnoto.specialandnoto.tinkerandnoto.shop_gem_imbueend,function(ring,ring_item)
player:showInventory("Use which gem?",player:getInven("INVEN"),function(gem)returngem.type=="gem"andgem.imbue_powersandgem.material_levelend,function(gem,gem_item)
locallev=(ring.material_level+gem.material_level)/2*10+10-- Average the material level then add a bonus so we guarantee greater ego level range