sorcery  Diff

Differences From Artifact [fa121c0c8a]:

  • File metal.lua — part of check-in [96c5289a2a] at 2020-10-21 03:35:35 on branch trunk — add rune forges, runes, amulet frames, write sacrifice spell, touch up amulet graphics, enable enchantment of amulets (though spells cannot yet be cast), defuckulate syncresis core icon, unfuckitize sneaky leycalc bug that's probably been the cause of some long-standing wackiness, add item classes, add some more textures, disbungle various other asstastrophes, remove sneaky old debug code, improve library code, add utility for uploading merge requests (user: lexi, size: 6688) [annotate] [blame] [check-ins using]

To Artifact [816e3182ea]:


    88     88   			metal = 1;
    89     89   			sorcery_screw = 1;
    90     90   			sorcery_tech_component = 1;
    91     91   		};
    92     92   		_sorcery = {
    93     93   			material = {
    94     94   				id = name, data = metal;
           95  +				powder = powder;
    95     96   				grindcost = 2, grindvalue = 1;
    96     97   				value = 0.5;
    97     98   			};
    98     99   		};
    99    100   	})
          101  +	local reglathe = function(ty, sz)
          102  +		sorcery.lathe.register {
          103  +			input = ty;
          104  +			output = {name = screw, count = sz * 2};
          105  +			tech = 'cut', cost = 1;
          106  +		}
          107  +	end
          108  +	reglathe(fragment, 1)
          109  +	reglathe(ingot, 4)
          110  +	reglathe(block, 4 * 9)
   100    111   	minetest.register_craftitem(powder, {
   101    112   		description = sorcery.lib.str.capitalize(name) .. ' Powder';
   102    113   		inventory_image = 'sorcery_' .. name .. '_powder.png';
   103    114   	})
   104    115   	if metal.dye then
   105    116   		minetest.register_craft {
   106    117   			output = 'dye:' .. metal.dye .. ' 4';
................................................................................
   110    121   				{'',    'bucket:bucket_water',     ''};
   111    122   			};
   112    123   			replacements = {
   113    124   				{'bucket:bucket_water', 'bucket:bucket_empty'};
   114    125   			};
   115    126   		};
   116    127   	end
   117         -	-- TODO: replace crafting recipe with kiln recipe
   118         -	minetest.register_craft {
   119         -		output = screw.. ' 8';
   120         -		recipe = {
   121         -			{'',          'xdecor:hammer',''};
   122         -			{        fragment,fragment,fragment};
   123         -			{'',              fragment,''};
   124         -		};
   125         -		replacements = {
   126         -			{'xdecor:hammer','xdecor:hammer'};
   127         -		};
   128         -	}
   129    128   	if not sorcery.compat.defp(ingot) then
   130    129   		-- TODO: remove instant_ores dependency
   131    130   		instant_ores.register_metal {
   132    131   			name = 'sorcery:' .. name;
   133    132   			description = sorcery.lib.str.capitalize(name);
   134    133   			color = sorcery.lib.color(metal.tone):hex() .. ':' .. ((metal.alpha and tostring(metal.alpha)) or '45');
   135    134   			rarity = metal.rarity;