sorcery  Check-in [67cefa38df]

Overview
Comment:add displacer sound effects, tweak astrolabe recipe to use new crafting items
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 67cefa38df67713179ceebcedba438f254a40b975f026cae06abdfa55ab794c7
User & Date: lexi on 2021-07-14 15:42:27
Other Links: manifest | tags
Context
2021-07-22
20:26
amulets are now made via powder intaglio check-in: 0c88d214a8 user: lexi tags: trunk
2021-07-14
15:42
add displacer sound effects, tweak astrolabe recipe to use new crafting items check-in: 67cefa38df user: lexi tags: trunk
2021-07-11
02:26
idk even check-in: cf3645dcf5 user: lexi tags: trunk
Changes

Modified astrolabe.lua from [4969c316df] to [f9abc31365].

119
120
121
122
123
124
125

126
127
128
129
130
131
132
133
	_sorcery = {
		recipe = {
			note = 'Unravel the secrets of the stars';
		};
	};
})


minetest.register_craft {
	output = 'sorcery:astrolabe';
	recipe = {
		{'sorcery:steel_screw','default:steel_ingot','sorcery:steel_screw'};
		{'default:copper_ingot',sorcery.data.metals.brass.parts.block,'default:copper_ingot'};
		{'default:stick','sorcery:screw_steel','default:stick'};
	};
};







>




|



119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
	_sorcery = {
		recipe = {
			note = 'Unravel the secrets of the stars';
		};
	};
})

local m = sorcery.data.metals
minetest.register_craft {
	output = 'sorcery:astrolabe';
	recipe = {
		{'sorcery:steel_screw','default:steel_ingot','sorcery:steel_screw'};
		{m.copper.parts.disc,m.brass.parts.block,m.copper.parts.disc};
		{'default:stick','sorcery:screw_steel','default:stick'};
	};
};

Modified displacer.lua from [ec3123df49] to [105252a76b].

195
196
197
198
199
200
201

202
203
204



205
206
207
208
209
210
211
			end
			if not transmission then return false end
			-- iterate through available receptacles and see if there's room
			-- in any of them. otherwise, fail
			for _,r in pairs(remote.receptacles) do
				local i = minetest.get_meta(r):get_inventory()
				transmission = i:add_item('cache',transmission)

				if transmission:is_empty() then break end
			end
			if not transmission:is_empty() then inv:add_item('cache',transmission) end



			return true
		elseif n.maxpower >= n.self.maxpower then
			-- other devices are currently drawing power and might stop,
			-- making enough available for us; keep iterating just in case
			return true
		else
			-- the system does not have the capability to generate







>


|
>
>
>







195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
			end
			if not transmission then return false end
			-- iterate through available receptacles and see if there's room
			-- in any of them. otherwise, fail
			for _,r in pairs(remote.receptacles) do
				local i = minetest.get_meta(r):get_inventory()
				transmission = i:add_item('cache',transmission)
				minetest.sound_play('sorcery_zap', { gain = 0.5, pos = r })
				if transmission:is_empty() then break end
			end
			if not transmission:is_empty() then inv:add_item('cache',transmission) else
				minetest.sound_play('sorcery_zap', { gain = 0.5, pos = pos })
			end
			-- TODO add particle fx as well
			return true
		elseif n.maxpower >= n.self.maxpower then
			-- other devices are currently drawing power and might stop,
			-- making enough available for us; keep iterating just in case
			return true
		else
			-- the system does not have the capability to generate