sorcery  Diff

Differences From Artifact [ed6c69759e]:

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

To Artifact [32e1f8328e]:

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

    13     13   			sorcery.lib.ui.tooltip {
    14     14   				title = label;
    15     15   				desc = desc;
    16     16   				color = color:readable();
    17     17   			}
    18     18   			-- label .. (desc and ("\n" .. color:readable():fmt(desc)) or '')
    19     19   		);
           20  +		short_description = label;
    20     21   		drawtype = "plantlike";
    21     22   		tiles = {image};
    22     23   		inventory_image = image;
    23     24   		paramtype = "light";
    24     25   		is_ground_content = false;
    25     26   		light_source = glow or 0;
    26     27   		drop = 'sorcery:' .. name;
................................................................................
    51     52   	sorcery.register.residue.link('sorcery:' .. name, 'xdecor:bowl')
    52     53   	extra.description = label;
    53     54   	extra.inventory_image = image;
    54     55   	if not extra.groups then extra.groups = {} end
    55     56   	minetest.register_craftitem('sorcery:' .. name, extra)
    56     57   end
    57     58   
    58         -sorcery.register_potion('blood', 'Blood', 'A bottle of sacrificial blood, imbued\nwith stolen life force', u.color(219,19,14))
           59  +sorcery.register_potion('blood', 'Blood', 'A bottle of sacrificial blood, imbued with stolen (or perhaps donated) life force', u.color(219,19,14), nil, nil, {
           60  +	sorcery_life_store = 4;
           61  +})
    59     62   sorcery.register_potion('potion_water', 'Water Bottle', 'A bottle of plain water', u.color(43,90,162))
    60     63   sorcery.register_potion('holy_water', 'Holy Water','A bottle of consecrated water',u.color(94,138,206),'sparkle',6)
    61     64   
    62     65   local create_infusion_recipe = function(id,potion,default_basis,proto)
    63     66   	if potion.infusion then
    64     67   		sorcery.register.infusions.link {
    65     68   			infuse = potion.infusion;