sorcery  Diff

Differences From Artifact [ec3123df49]:

  • File displacer.lua — part of check-in [147592b8e9] at 2020-10-26 03:58:08 on branch trunk — add over-time spellcasting abstraction to enable metamagic and in particular disjunction, add more animations and sound effects, add excavation spell, possibly some others, forget when the last commit was, edit a bunch of magitech to make it subject to the disjunction mechanism (throw up a disjunction aura and waltz right through those force fields bby, wheee), also illumination spells, tweak runeforge and rune frequence to better the balance and also limit player frustration, move some math functions into their own library category, various tweaks and bugfixes, probably other shit i don't remember (user: lexi, size: 9825) [annotate] [blame] [check-ins using]

To Artifact [105252a76b]:


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