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]
- 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 36 on_timer = function(pos,elapse)
37 37 local meta = minetest.get_meta(pos)
38 38 local inv = meta:get_inventory()
39 39 if inv:is_empty('charge') then return false end
40 40
41 41 local put_in_hopper = sorcery.lib.node.discharger(pos)
42 42 local discharge = function(item,idx)
43 - inv:set_stack('charge',put_in_hopper(item))
43 + inv:set_stack('charge',idx,put_in_hopper(item))
44 44 end
45 45
46 46 local ley = sorcery.ley.estimate(pos)
47 47 local charged = false
48 48 for i=1,inv:get_size('charge') do
49 49 local curve = function(x) return ((x*10)^2)/10 end
50 50 local item = inv:get_stack('charge',i)