sorcery  Check-in [e8e42c6029]

Overview
Comment:disassembler no longer disintegrates glass bottles
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e8e42c602956d2cbc9985178cc58e2a98626300909832805fb9347feb34d891a
User & Date: lexi on 2021-07-06 17:35:42
Other Links: manifest | tags
Context
2021-07-06
19:26
bug fixes check-in: b82a675e76 user: lexi tags: trunk
17:35
disassembler no longer disintegrates glass bottles check-in: e8e42c6029 user: lexi tags: trunk
16:55
add leyline debugger check-in: ef607df117 user: lexi tags: trunk
Changes

Modified disassembly.lua from [9a3b11da34] to [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())