Differences From Artifact [47b0c7f3e9]:
- File data/spells.lua — part of check-in [9278734b41] at 2020-08-17 13:35:12 on branch trunk — fix bugs, finish grinder, add conduits and condensers to extract and transmit energy from leylines (user: lexi, size: 14819) [annotate] [blame] [check-ins using]
To Artifact [a738b55bd0]:
- File data/spells.lua — part of check-in [f7f6898cbd] at 2020-08-21 11:52:17 on branch trunk — add force field emitters, generators, rework leyline distribution algorithm, add utility function for automatically dumping out inventories when an item is dug, add draconium and tyrannium alloys (tentatively), various fixes (user: lexi, size: 14791) [annotate] [blame] [check-ins using]
384 384 local duration = (ctx.base.gem == 'amethyst' and 60) or 30 385 385 if ctx.base.gem == 'diamond' then 386 386 power = power * (math.random()*2) 387 387 range = range * (math.random()*2) 388 388 duration = duration * (math.random()*2) 389 389 end 390 390 local lum = math.ceil((power/maxpower) * minetest.LIGHT_MAX) 391 - print('setting lum',lum) 392 391 for i=1,power do 393 392 local pos = vector.add(center, { 394 393 x = math.random(-range,range); 395 394 z = math.random(-range,range); 396 395 y = math.random(0,range/2); 397 396 }) 398 397 local delta = vector.subtract(pos,center)