sorcery  Diff

Differences From Artifact [4ff6f034b6]:

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

To Artifact [fc9658990d]:



1
2
3
4
5
6



7
8
9
10
11
12
13
..
33
34
35
36
37
38
39




















40
41
42
43
44
45
46
...
130
131
132
133
134
135
136

137
138
139
140
141
142
143

return {
	harvest = {
		name = "Irix Irimentari" --[[
			an old Elerian harvest goddess, Irix Irimentari has watched vigilantly over the fields of her worshippers since before the Second Age. she favors alcoholic beverages as tribute, and has been known to perform blessings for sorcerers when sufficiently inebriated. she harbors a particular hatred of daemons and those who spill the blood of farmers.

			legend says that a barbarian lord high on opium once wandered into a temple of Irix and left the severed head of a local shepherd on the her altar. this desecration so enraged the goddess that the barbarian's entire tribe soon starved horribly to death, their crops refusing to take root, and their stolen breads turning to ash in their mouths.



		]];
		laziness = 5;
		stinginess = 3;
		generosity = 10;
		color = {214, 255, 146};
		idol = {
			desc = "Harvest Idol";
................................................................................
				"flowerpot:flowers_chrysanthemum_green";
				"flowerpot:flowers_dandelion_white";
				"flowerpot:flowers_dandelion_yellow";
			}};
			["sorcery:dagger"] = {17, "sorcery:dagger_consecrated"};
			["sorcery:oil_mystic"] = {9, "sorcery:oil_purifying"};
			["sorcery:potion_water"] = {4, "sorcery:holy_water"};




















			-- ["default:steel_ingot"] = {15, "sorcery:holy_token_harvest"};
		};
		sacrifice = {
			-- beattitudes
			["farming:straw"           ] = 1;
			["farming:bread_slice"     ] = 1;
			["farming:bread"           ] = 2;
................................................................................
				Force = {favor=50, cost=5, chance=7};
				Longevity = {favor=65, cost=7, chance=3};
			};
			tools = {
				rend = {favor=80, cost=15, chance=20};
			};
		};

		generosity = 4;
		stinginess = 9;
		idol = {
			desc = "Blood Idol";
			width = 0.7;
			height = 1.3;
			tex = {
>






>
>
>







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
..
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
...
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
local L = sorcery.lib
return {
	harvest = {
		name = "Irix Irimentari" --[[
			an old Elerian harvest goddess, Irix Irimentari has watched vigilantly over the fields of her worshippers since before the Second Age. she favors alcoholic beverages as tribute, and has been known to perform blessings for sorcerers when sufficiently inebriated. she harbors a particular hatred of daemons and those who spill the blood of farmers.

			legend says that a barbarian lord high on opium once wandered into a temple of Irix and left the severed head of a local shepherd on the her altar. this desecration so enraged the goddess that the barbarian's entire tribe soon starved horribly to death, their crops refusing to take root, and their stolen breads turning to ash in their mouths.

			in the mystic arts, she is the patron of Alchemy. it is said that Irix
			Irimentari herself invented alchemy when she brewed the first mead.
		]];
		laziness = 5;
		stinginess = 3;
		generosity = 10;
		color = {214, 255, 146};
		idol = {
			desc = "Harvest Idol";
................................................................................
				"flowerpot:flowers_chrysanthemum_green";
				"flowerpot:flowers_dandelion_white";
				"flowerpot:flowers_dandelion_yellow";
			}};
			["sorcery:dagger"] = {17, "sorcery:dagger_consecrated"};
			["sorcery:oil_mystic"] = {9, "sorcery:oil_purifying"};
			["sorcery:potion_water"] = {4, "sorcery:holy_water"};
			["default:paper"] = function(ctx)
				local stack = ItemStack('sorcery:recipe')
				local mode = select(2,L.tbl.pick{'cook','craft','infuse','grind'})
				sorcery.cookbook.setrecipe(stack, mode, nil, {
					pred = function(c)
						local me = ctx.god
						if c.mod == 'farming' or
							minetest.get_item_group(c.item, 'sorcery_potion') ~= 0 or
							minetest.get_item_group(c.item, 'sorcery_oil') ~= 0 or
							minetest.get_item_group(c.item, 'sorcery_grease') ~= 0 or
							minetest.get_item_group(c.item, 'sorcery_extract') ~= 0 or
							me.sacrifice [c.item] or
							me.consecrate[c.item] then
							print(' !! accepted')
							return true end
						print(' -- rejected')
					end;
				})
				return 1, stack
			end;
			-- ["default:steel_ingot"] = {15, "sorcery:holy_token_harvest"};
		};
		sacrifice = {
			-- beattitudes
			["farming:straw"           ] = 1;
			["farming:bread_slice"     ] = 1;
			["farming:bread"           ] = 2;
................................................................................
				Force = {favor=50, cost=5, chance=7};
				Longevity = {favor=65, cost=7, chance=3};
			};
			tools = {
				rend = {favor=80, cost=15, chance=20};
			};
		};
		laziness = 2;
		generosity = 4;
		stinginess = 9;
		idol = {
			desc = "Blood Idol";
			width = 0.7;
			height = 1.3;
			tex = {