Differences From
Artifact [1cf2c5fc2a]:
58 58 paramtype = 'light';
59 59 paramtype2 = 'facedir';
60 60 sunlight_propagates = true;
61 61 stack_max = 1;
62 62 tiles = god.idol.tex;
63 63 selection_box = { type = "fixed"; fixed = {hitbox}; };
64 64 collision_box = { type = "fixed"; fixed = {hitbox}; };
65 - groups = { cracky = 2, sorcery_idol = 1, heavy = 1};
65 + groups = { cracky = 2, sorcery_idol = 1, heavy = 1, sorcery_worship = 1};
66 66
67 67 after_place_node = function(pos, placer, stack, pointat)
68 68 local meta = minetest.get_meta(pos)
69 69 local stackmeta = stack:get_meta()
70 70 meta:set_int('favor', stackmeta:get_int('favor'))
71 71 meta:set_string('last_sacrifice', stackmeta:get_string('last_sacrifice'))
72 72
................................................................................
193 193 local itemname = stack:get_name()
194 194
195 195 -- loop through the sacrifices accepted by this god and check
196 196 -- whether the item on the altar is any of them
197 197 for s, value in pairs(god.sacrifice) do
198 198 if itemname == s then
199 199 if value < 0 then
200 - bestow("new_campfire:ash", sorcery.lib.color(254,117,103))
200 + bestow("sorcery:ash", sorcery.lib.color(254,117,103))
201 201 else
202 202 if idolmeta:get_string('last_sacrifice') == s then
203 203 -- the gods are getting bored
204 204 value = math.floor(value / 2)
205 205 end
206 206 bestow(nil)
207 207 end
................................................................................
291 291 fixed = { {-0.5, -0.5, -0.5, 0.5, -0.09, 0.5} }
292 292 };
293 293 collision_box = {
294 294 type = "fixed",
295 295 fixed = { {-0.5, -0.5, -0.5, 0.5, -0.09, 0.5} }
296 296 };
297 297
298 - groups = {cracky = 2, oddly_breakable_by_hand = 2};
298 + groups = {cracky = 2, oddly_breakable_by_hand = 2, sorcery_worship = 1};
299 299
300 300 on_construct = function(pos)
301 301 local meta = minetest.get_meta(pos)
302 302 local inv = meta:get_inventory()
303 303 inv:set_size('item', 1)
304 304 end;
305 305