Differences From
Artifact [54442c247e]:
- File
wands.lua
— part of check-in
[72eebac4bc]
at
2020-09-26 18:49:51
on branch trunk
— add writing stand for editing codexes; add scissors, ink, erasure fluid, pens; touch up codex UI; add many recipe notes; add craft divination type for crafttools; defuckulate fucktarded crafttool impl; enhance table library with missing features like lua's table.unpack; many bug fixes and enhancements; blood for the blood god
(user:
lexi,
size: 24418)
[annotate]
[blame]
[check-ins using]
695 695
696 696 local register_station = function(water)
697 697 local tilebase = {
698 698 "default_aspen_wood.png";
699 699 "sorcery_wandworking_station_side.png";
700 700 }
701 701 local base = {
702 - description = "Wandworking station";
702 + description = "Wandworking Station";
703 703 groups = {
704 704 choppy = 2;
705 705 };
706 706 paramtype2 = 'facedir';
707 707 on_construct = function(pos)
708 708 local meta = minetest.get_meta(pos)
709 709 local inv = meta:get_inventory()
................................................................................
791 791 elseif list == 'wandparts' then
792 792 if wwi:is_empty('preview') then update_wand(wwi)
793 793 else update_preview(wwi) end
794 794 elseif list == 'tank' then
795 795 minetest.get_node_timer(pos):start(1)
796 796 end
797 797 end;
798 + _sorcery = {
799 + recipe = {
800 + note = 'Construct wands from tree blocks and gems; fill with water and soak wands with philters to enchant them';
801 + };
802 + };
798 803 }
799 804
800 805 local id
801 806 if water then
802 807 id = 'sorcery:wandworking_station_water'
803 808 base = u.tbl.merge(base, {
804 - description = "Wandworking station (full)";
809 + description = "Wandworking Station (full)";
805 810 tiles = u.tbl.append({"sorcery_wandworking_station_top_water.png"}, tilebase)
806 811 })
807 812 else
808 813 id = 'sorcery:wandworking_station'
809 814 base = u.tbl.merge(base, {
810 - description = "Wandworking station";
815 + description = "Wandworking Station";
811 816 drop = "sorcery:wandworking_station";
812 817 tiles = u.tbl.append({"sorcery_wandworking_station_top.png"}, tilebase)
813 818 })
814 819 end
815 820 minetest.register_node(id, base)
816 821 end
817 822