Differences From Artifact [de45db35b3]:
- File harvester.lua — part of check-in [3f6a913e4e] at 2020-09-29 12:40:28 on branch trunk — * remove former hacky registration system, replace with consistent and flexible API; rewrite metal/gem generation to take advantage of this new API; tweaks to init system to enable world-local tweaks to lore and sorcery behavior * initial documentation commit * initial steps towards calendar - add default date format, astrolabe; prepare infra for division/melding/transmutation spells, various tweaks and fixes (user: lexi, size: 4390) [annotate] [blame] [check-ins using]
To Artifact [ae53588867]:
- File harvester.lua — part of check-in [ea6e475e44] at 2020-10-19 09:52:11 on branch trunk — continue dev on celestial mechanics, add melding+division spells (resonance), refine itemclasses, add keypunch and punchcards, add paper pulp, add a shitload of visuals, add convenience scripts for working with the wiki, make the flamebolt spell actually useful instead of just a pretty lightshow, add essences, inferno crystal, and other goodies; iterate on wands, lots of shit i can't remember, various bugfixes (user: lexi, size: 4394) [annotate] [blame] [check-ins using]
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
on_timer = function(pos,elapse) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() if inv:is_empty('charge') then return false end local put_in_hopper = sorcery.lib.node.discharger(pos) local discharge = function(item,idx) inv:set_stack('charge',put_in_hopper(item)) end local ley = sorcery.ley.estimate(pos) local charged = false for i=1,inv:get_size('charge') do local curve = function(x) return ((x*10)^2)/10 end local item = inv:get_stack('charge',i) |
| |
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
on_timer = function(pos,elapse)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
if inv:is_empty('charge') then return false end
local put_in_hopper = sorcery.lib.node.discharger(pos)
local discharge = function(item,idx)
inv:set_stack('charge',idx,put_in_hopper(item))
end
local ley = sorcery.ley.estimate(pos)
local charged = false
for i=1,inv:get_size('charge') do
local curve = function(x) return ((x*10)^2)/10 end
local item = inv:get_stack('charge',i)
|