Differences From
Artifact [f5bc90eb64]:
61 61 if not sp or not sp.cast then return nil end
62 62 local stats = sorcery.amulet.stats(stack)
63 63
64 64 local ctx = {
65 65 caster = user;
66 66 target = target;
67 67 stats = stats;
68 - sound = "xdecor_enchanting"; --FIXME make own sounds
69 - sparkle = true;
70 68 amulet = stack;
71 69 meta = stack:get_meta(); -- avoid spell boilerplate
72 70 color = sorcery.lib.color(sp.tone);
71 + today = minetest.get_day_count();
72 + heading = {
73 + pos = user:get_pos();
74 + yaw = user:get_look_dir();
75 + pitch = user:get_look_vertical();
76 + angle = user:get_look_horizontal();
77 + eyeheight = user:get_properties().eye_height;
78 + };
79 +
80 + sound = "xdecor_enchanting"; --FIXME make own sounds
81 + sparkle = true;
73 82 }
74 83 print('casting')
75 84 local res = sp.cast(ctx)
76 85
77 86 if res == nil or res == true then
78 87 minetest.sound_play(ctx.sound, {
79 88 pos = user:get_pos();