sorcery  Diff

Differences From Artifact [21229f1a9e]:

  • File lib/item.lua — part of check-in [ea6e475e44] at 2020-10-19 09:52:11 on branch trunk — continue dev on celestial mechanics, add melding+division spells (resonance), refine itemclasses, add keypunch and punchcards, add paper pulp, add a shitload of visuals, add convenience scripts for working with the wiki, make the flamebolt spell actually useful instead of just a pretty lightshow, add essences, inferno crystal, and other goodies; iterate on wands, lots of shit i can't remember, various bugfixes (user: lexi, size: 2094) [annotate] [blame] [check-ins using]

To Artifact [390f387a79]:


    31     31   			end
    32     32   		else
    33     33   			local is = ItemStack(identity)
    34     34   			identity,count = is:get_name(), is:get_count()
    35     35   		end
    36     36   	end
    37     37   
    38         -	local stack = ItemStack(item)
    39     38   	if sorcery.lib.str.beginswith(identity, 'group:') then
           39  +		local stack = ItemStack(item)
    40     40   		local groups = sorcery.lib.str.explode(string.sub(identity,7), ',')
    41     41   		for _,g in pairs(groups) do
    42     42   			local rn,rv = sorcery.lib.tbl.split(g,'=')
    43     43   			local gv = minetest.get_item_group(stack:get_name(), rn)
    44     44   			if rv then
    45     45   				if gv ~= tonumber(rv) then return false, stack end
    46     46   			else