Differences From
Artifact [16c84d9b57]:
- File
data/spells.lua
— part of check-in
[15f176a7fe]
at
2020-10-31 19:49:49
on branch trunk
— add background noise for condensers (temporary hack, need to write a proper environment sound framework as the fucking env_sounds module is completely impossible to extend), fix a couple of really stupid bugs, make higher-quality phials increase the chance of getting good runes so it's not a complete waste to burn iridium or levitanium powder on making them, add targeted disjunction and some other amulet spells
(user:
lexi,
size: 28431)
[annotate]
[blame]
[check-ins using]
781 781 local delta = vector.subtract(pos,center)
782 782 local near = 1 - (delta.x^2 + delta.y^2 + delta.z^2)/(range^2)
783 783 if minetest.get_node(pos).name == 'air' then
784 784 minetest.set_node(pos,{name='sorcery:air_glimmer_' .. tostring(lum)})
785 785 do local lm = minetest.get_meta(pos)
786 786 lm:set_float('duration',duration)
787 787 lm:set_float('timeleft',duration)
788 - lm:set_float('power',lum * near)
788 + lm:set_int('power',lum * near)
789 789 end
790 790 end
791 791 end
792 792 end;
793 793 };
794 794 }