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
32
33
34
35
36
37
38
39

40
41
42
43
44
45
46
			end
		else
			local is = ItemStack(identity)
			identity,count = is:get_name(), is:get_count()
		end
	end

	local stack = ItemStack(item)
	if sorcery.lib.str.beginswith(identity, 'group:') then

		local groups = sorcery.lib.str.explode(string.sub(identity,7), ',')
		for _,g in pairs(groups) do
			local rn,rv = sorcery.lib.tbl.split(g,'=')
			local gv = minetest.get_item_group(stack:get_name(), rn)
			if rv then
				if gv ~= tonumber(rv) then return false, stack end
			else







<

>







31
32
33
34
35
36
37

38
39
40
41
42
43
44
45
46
			end
		else
			local is = ItemStack(identity)
			identity,count = is:get_name(), is:get_count()
		end
	end


	if sorcery.lib.str.beginswith(identity, 'group:') then
		local stack = ItemStack(item)
		local groups = sorcery.lib.str.explode(string.sub(identity,7), ',')
		for _,g in pairs(groups) do
			local rn,rv = sorcery.lib.tbl.split(g,'=')
			local gv = minetest.get_item_group(stack:get_name(), rn)
			if rv then
				if gv ~= tonumber(rv) then return false, stack end
			else