sorcery  Diff

Differences From Artifact [9a3b11da34]:

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

To Artifact [8701b2357d]:


   120    120   					i:set_stack('item',1,ItemStack())
   121    121   				end
   122    122   			end
   123    123   			local ink = i:get_stack('ink',1)
   124    124   			local paper = i:get_stack('paper',1)
   125    125   			ink:take_item(count)		paper:take_item(count)
   126    126   			i:set_stack('ink',1,ink)	i:set_stack('paper',1,paper)
          127  +			sorcery.lib.node.insert(ItemStack 'vessels:glass_bottle', 'ink', pos, user, i)
   127    128   			local penstack = i:get_stack('pen',1)
   128    129   			local pen = penstack:get_definition()._sorcery
   129    130   			local uses = pen.material.data.durability * 0.10
   130    131   			local dmg = 65535 / math.random(math.floor(uses*0.5),uses)
   131    132   			print('adding damage',dmg,penstack:get_wear())
   132    133   			penstack:add_wear(dmg)
   133    134   			print('wear now',penstack:get_wear())