Commit 2fb8e2bff638b57dc7ad7e5b44fff06eb145d5d2

Authored by dg
1 parent b51c33ae

Socketing your golem does not use the whole pile of gems


git-svn-id: http://svn.net-core.org/repos/t-engine4@2631 51575b47-30f0-44d4-a5cc-537603b46e54
... ... @@ -58,7 +58,7 @@ local change_gem = function(npc, player, gemid)
58 58 player:showInventory("Select a gem for your golem.", inven, function(o) return o.type == "gem" and o.material_level and o.material_level <= player:getTalentLevelRaw(player.T_GEM_GOLEM) end, function(o, item)
59 59 player:removeObject(inven, item, true)
60 60 local gems = golem:getInven("GEM")
61   - local old = golem:removeObject(gems, gemid, true)
  61 + local old = golem:removeObject(gems, gemid)
62 62 if old then player:addObject(inven, old) end
63 63
64 64 -- Force "wield"
... ...