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]
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