sorcery  Diff

Differences From Artifact [68440cd05e]:

To Artifact [12e0882fa3]:


    54     54   	end
    55     55   	if not gem.foreign_amulet then
    56     56   		local img = sorcery.lib.image
    57     57   		local img_stone = img('sorcery_amulet.png'):multiply(sorcery.lib.color(gem.tone))
    58     58   		local img_sparkle = img('sorcery_amulet_sparkle.png')
    59     59   		local useamulet = function(stack,user,target)
    60     60   			local sp = sorcery.amulet.getspell(stack)
           61  +			print('got spell',dump(sp))
    61     62   			if not sp or not sp.cast then return nil end
    62     63   
    63     64   			local usedamulet if stack:get_count() == 1 then
    64     65   				usedamulet = stack
    65     66   			else
    66     67   				usedamulet = ItemStack(stack)
    67     68   				usedamulet:set_count(1)