sorcery  Diff

Differences From Artifact [c2cb3e762c]:

To Artifact [13321ca8da]:

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

    28     28   end
    29     29   
    30     30   if minetest.get_modpath("new_campfire") then
    31     31   	minetest.register_alias('sorcery:ash', 'new_campfire:ash')
    32     32   else
    33     33   	minetest.register_craftitem('sorcery:ash', {
    34     34   		description = 'Ash';
    35         -		inventory_image = 'sorcery_iron_powder.png^[colorize:#FFFFFF:100';
           35  +		inventory_image = 'sorcery_iron_powder.png^[colorize:#FFFFFF:60';
    36     36   	})
    37     37   	minetest.register_alias('new_campfire:ash', 'sorcery:ash')
    38     38   end
    39     39   
    40     40   -- xdecor offers a conflicting and somewhat poorly designed enchantment
    41     41   -- mechanism; make it inaccessible but don't fuck up already existing
    42     42   -- enchanters in the world
    43         -minetest.clear_craft { output='xdecor:enchanter'; }
           43  +minetest.clear_craft { output='xdecor:enchantment_table'; }
           44  +minetest.override_item('xdecor:enchantment_table', {
           45  +	groups = sorcery.lib.tbl.merge(minetest.registered_items['xdecor:enchantment_table'].groups, {
           46  +		not_in_creative_inventory = 1;
           47  +	})
           48  +})
    44     49   
    45     50   return {
    46     51   	defp = function(name)
    47     52   		return minetest.registered_items[name] or minetest.registered_aliases[name]
    48     53   	end;
    49     54   }