sorcery  Diff

Differences From Artifact [b08a2041a5]:

To Artifact [ba37716134]:


            1  +local inc = function(prop, val)
            2  +	return function(potion, kind)
            3  +		local meta = potion:get_meta()
            4  +		meta:set_int(prop, meta:get_int(prop) + (val or 1))
            5  +	end
            6  +end
            7  +
     1      8   return {
     2      9   	Force = {
     3         -		color = {255,165,85}; flag = 'force';
     4         -		apply = function(potion, kind)
     5         -			local meta = potion:get_meta()
     6         -			meta:set_int('force', meta:get_int('force') + 1)
     7         -		end;
           10  +		color = {255,165,85}; qual = 'force';
           11  +		apply = inc('force');
     8     12   		describe = function(potion)
     9     13   			return 'good', 'empowered', "The strength of this potion's effect has been alchemically amplified"
    10     14   		end;
    11     15   		infusion = 'sorcery:grease_thunder';
    12     16   	};
    13     17   	Longevity = {
    14         -		color = {255,85,216}; flag = 'duration';
    15         -		apply = function(potion, kind)
    16         -			local meta = potion:get_meta()
    17         -			meta:set_int('duration', meta:get_int('duration') + 1)
    18         -		end;
           18  +		color = {255,85,216}; qual = 'duration';
           19  +		apply = inc('duration');
    19     20   		describe = function(potion)
    20     21   			return 'good', 'prolonged', 'The effects of this potion will last longer than normal'
    21     22   		end;
    22     23   		infusion = 'sorcery:grease_pine';
    23     24   	};
           25  +	Rapidity = {
           26  +		color = {183,28,238}; qual = 'speed';
           27  +		apply = inc('speed');
           28  +		describe = function(potion)
           29  +			return 'good', 'Quickened', 'This potion will take effect more quiclkly and easily'
           30  +		end;
           31  +		infusion = 'sorcery:liquid_sap_acacia_bottle';
           32  +	};
           33  +	Purity = {
           34  +		color = {244,255,255}; qual = 'purity';
           35  +		apply = inc('purity');
           36  +		describe = function(potion)
           37  +			return 'good', 'purified', 'This potion\'s impurities and undesirable side effects are diminished or eliminated'
           38  +		end;
           39  +		infusion = 'sorcery:oil_purifying';
           40  +	};
           41  +	Beauty = {
           42  +		color = {255,20,226}; qual = 'beauty';
           43  +		apply = inc('beauty');
           44  +		describe = function(potion)
           45  +			return 'good', 'beautified', 'The effects of this potion will be more vivid and spectacular than normal'
           46  +		end;
           47  +		infusion = 'sorcery:liquid_sap_apple_bottle';
           48  +	};
           49  +	-- Glory?
           50  +	-- Clarity?
    24     51   }