sorcery  Artifact [a046b8be6a]

Artifact a046b8be6a07637adfd8b64e0d39c22474164953d61a45c800f57527501c182a:

  • File data/gems.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: 1706) [annotate] [blame] [check-ins using]

local default_items = function(name)
	return {
		pick   = 'default:pick_'   .. name;
		axe    = 'default:axe_'    .. name;
		shovel = 'default:shovel_' .. name;
		hoe    = 'farming:hoe_'    .. name;
		sickle = 'tweaks:sickle_' .. name;
		scythe = 'tweaks:scythe_' .. name;
		sword  = 'default:sword_'  .. name;

		helmet     = '3d_armor:helmet_'     .. name;
		leggings   = '3d_armor:leggings_'   .. name;
		chestplate = '3d_armor:chestplate_' .. name;
		boots      = '3d_armor:boots_'      .. name;
		shield     = '3d_armor:shield_'     .. name;
	};
end

return {
	diamond = {
		foreign = 'default:diamond';
		tone = {137,240,255};
		items = default_items('diamond');
		tools = true, armor = true;
		maxenergy = 2000;
		hardness = 8;
		randomfind = false;
		slots = {
			{affinity = {'praxic','counterpraxic'}, confluence = 1};
			{affinity = {'praxic','syncretic'}, confluence = 0.6};
			{affinity = {'counterpraxic', 'entropic'}, confluence = 0.7};
		};
	};
	mese = {
		foreign = 'default:mese_crystal';
		foreign_shard = 'default:mese_crystal_fragment';
		tone = {255,253,94};
		energysource = 5;
		hardness = 6;
		maxenergy = 600;
		items = default_items('mese');
		tools = true, armor = true;
		randomfind = false;
		slots = {
			{affinity = {'praxic'}, confluence = 1};
			{affinity = {'praxic'}, confluence = 0.5};
			{affinity = {'cognic'}, confluence = 1};
			{affinity = {'syncretic'}, confluence = 0.9};
		};
	};
	luxite = {
		tone = {189,255,236};
		rarity = 130;
	};
	ruby = {
		tone = {255,94,161};
		rarity = 150;
	};
	amethyst = {
		tone = {234,94,255};
		rarity = 190;
	};
	sapphire = {
		tone = {94,139,255};
		rarity = 260;
	};
	emerald = {
		tone = {133,255,94};
		rarity = 320;
	};
}