sorcery  Diff

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

To Artifact [f87e1ae861]:


     1      1   local u = sorcery.lib
     2      2   sorcery.registry.mk('infusions',false)
     3      3   sorcery.registry.mk('residue',false)
     4      4   
            5  +sorcery.register_potion_tbl = function(tbl) -- :/
            6  +	return sorcery.register_potion(tbl.name,tbl.label,tbl.desc,tbl.color,tbl.imgvariant,tbl.glow,tbl.extra)
            7  +end
     5      8   sorcery.register_potion = function(name,label,desc,color,imgvariant,glow,extra)
     6      9   	local image = 'sorcery_liquid_'..(imgvariant or 'dull')..'.png' .. 
     7     10   		'^[multiply:'..tostring(color)..
     8     11   		'^vessels_glass_bottle.png'
     9     12   
    10     13   	sorcery.register.residue.link('sorcery:' .. name, 'vessels:glass_bottle')
    11     14   	local node = {
................................................................................
    19     22   		);
    20     23   		short_description = label;
    21     24   		drawtype = "plantlike";
    22     25   		tiles = {image};
    23     26   		inventory_image = image;
    24     27   		paramtype = "light";
    25     28   		is_ground_content = false;
    26         -		light_source = glow or 0;
           29  +		light_source = glow and math.min(minetest.LIGHT_MAX,glow) or 0;
    27     30   		drop = 'sorcery:' .. name;
    28     31   		preserve_metadata = function(pos,node,meta,newstack)
    29     32   			newstack[1]:get_meta():from_table(meta)
    30     33   		end;
    31     34   		walkable = false;
    32     35   		selection_box = {
    33     36   			type = "fixed",