sorcery  Diff

Differences From Artifact [54442c247e]:

To Artifact [a570130d91]:

  • File wands.lua — part of check-in [72eebac4bc] at 2020-09-26 18:49:51 on branch trunk — add writing stand for editing codexes; add scissors, ink, erasure fluid, pens; touch up codex UI; add many recipe notes; add craft divination type for crafttools; defuckulate fucktarded crafttool impl; enhance table library with missing features like lua's table.unpack; many bug fixes and enhancements; blood for the blood god (user: lexi, size: 24418) [annotate] [blame] [check-ins using]

695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
...
791
792
793
794
795
796
797





798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817

local register_station = function(water)
	local tilebase = {
		"default_aspen_wood.png";
		"sorcery_wandworking_station_side.png";
	}
	local base = {
		description = "Wandworking station";
		groups = {
			choppy = 2;
		};
		paramtype2 = 'facedir';
		on_construct = function(pos)
			local meta = minetest.get_meta(pos)
			local inv = meta:get_inventory()
................................................................................
			elseif list == 'wandparts' then
				if wwi:is_empty('preview') then update_wand(wwi)
				else update_preview(wwi) end
			elseif list == 'tank' then
				minetest.get_node_timer(pos):start(1)
			end
		end;





	}

	local id
	if water then
		id = 'sorcery:wandworking_station_water'
		base = u.tbl.merge(base, {
			description = "Wandworking station (full)";
			tiles = u.tbl.append({"sorcery_wandworking_station_top_water.png"}, tilebase)
		})
	else
		id = 'sorcery:wandworking_station'
		base = u.tbl.merge(base, {
			description = "Wandworking station";
			drop = "sorcery:wandworking_station";
			tiles = u.tbl.append({"sorcery_wandworking_station_top.png"}, tilebase)
		})
	end
	minetest.register_node(id, base)
end








|







 







>
>
>
>
>






|





|







695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
...
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822

local register_station = function(water)
	local tilebase = {
		"default_aspen_wood.png";
		"sorcery_wandworking_station_side.png";
	}
	local base = {
		description = "Wandworking Station";
		groups = {
			choppy = 2;
		};
		paramtype2 = 'facedir';
		on_construct = function(pos)
			local meta = minetest.get_meta(pos)
			local inv = meta:get_inventory()
................................................................................
			elseif list == 'wandparts' then
				if wwi:is_empty('preview') then update_wand(wwi)
				else update_preview(wwi) end
			elseif list == 'tank' then
				minetest.get_node_timer(pos):start(1)
			end
		end;
		_sorcery = {
			recipe = {
				note = 'Construct wands from tree blocks and gems; fill with water and soak wands with philters to enchant them';
			};
		};
	}

	local id
	if water then
		id = 'sorcery:wandworking_station_water'
		base = u.tbl.merge(base, {
			description = "Wandworking Station (full)";
			tiles = u.tbl.append({"sorcery_wandworking_station_top_water.png"}, tilebase)
		})
	else
		id = 'sorcery:wandworking_station'
		base = u.tbl.merge(base, {
			description = "Wandworking Station";
			drop = "sorcery:wandworking_station";
			tiles = u.tbl.append({"sorcery_wandworking_station_top.png"}, tilebase)
		})
	end
	minetest.register_node(id, base)
end