sorcery  Diff

Differences From Artifact [4064266f0d]:

To Artifact [46cef4271e]:

  • File tnodes.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: 1863) [annotate] [blame] [check-ins using]

    18     18   			minetest.get_node_timer(pos):start(1)
    19     19   		end;
    20     20   		on_timer = function(pos,dtime)
    21     21   			local meta = minetest.get_meta(pos)
    22     22   			local elapsed = dtime + meta:get_float('duration') - meta:get_float('timeleft')
    23     23   			local level = 1 - (elapsed / meta:get_float('duration'))
    24     24   			local lum = math.ceil(level*meta:get_int('power'))
           25  +			local probe = sorcery.spell.probe(pos)
           26  +			if probe.disjunction then
           27  +				minetest.remove_node(pos)
           28  +				return false
           29  +			end
    25     30   			if lum ~= i then
    26     31   				if lum <= 0 then
    27     32   					minetest.remove_node(pos)
    28     33   					return false
    29     34   				else
    30     35   					minetest.swap_node(pos,{name='sorcery:air_glimmer_'..tostring(lum)})
    31     36   				end