sorcery  Diff

Differences From Artifact [7e4d0ae5aa]:

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

To Artifact [d6a069e16f]:


   179    179   			local inv = meta:get_inventory()
   180    180   			local reduce_slot = function(slot)
   181    181   				local i = inv:get_stack(slot,1)
   182    182   				i:take_item(items_used) inv:set_stack(slot,1,i)
   183    183   			end
   184    184   			reduce_slot('ingot')
   185    185   			if not inv:is_empty('gem') then reduce_slot('gem') end
          186  +			minetest.sound_play('sorcery_coins', { pos = pos, gain = 0.7 })
   186    187   		end
   187    188   		update_press_output(meta)
   188    189   	end;
   189    190   }) end
   190    191   
   191    192   minetest.register_craft {
   192    193   	output = 'sorcery:coin_press';
   193    194   	recipe = {
   194    195   		{'group:wood','group:wood','group:wood'};
   195    196   		{'basic_materials:steel_bar','default:steel_ingot','basic_materials:steel_bar'};
   196    197   		{'default:copper_ingot','default:stone','default:copper_ingot'};
   197    198   	};
   198    199   }