sorcery  Diff

Differences From Artifact [e5af87fe4c]:

To Artifact [f5d6bba856]:


    49     49   	end
    50     50   	inv:set_stack('output',1,ItemStack(nil))
    51     51   	do return end
    52     52   
    53     53   	::foundmetal:: if not inv:is_empty('gem') then
    54     54   		local id = slot_gem:get_name()
    55     55   		for name,gem in pairs(sorcery.data.gems) do
    56         -			print('scanning gem',name,dump(gem))
    57     56   			if gem.foreign then
    58     57   				if id == gem.foreign then gemname = name 
    59     58   					else goto skip end
    60     59   			else
    61     60   				if id == 'sorcery:gem_' .. name then gemname = name
    62     61   					else goto skip end
    63     62   			end
    64     63   			coincount = math.min(coincount, slot_gem:get_count())
    65     64   			do break end
    66     65   		::skip::end
    67     66   	end
    68     67   	
    69     68   	coincount = coincount * coins_per_ingot
    70         -	print('names',coinname,gemname)
    71     69   
    72     70   	local coinname = 'sorcery:coin_' .. metalname ..
    73     71   		((gemname and '_' .. gemname) or '')
    74     72   
    75     73   	inv:set_stack('output',1,ItemStack {
    76     74   		name = coinname;
    77     75   		count = coincount;