391
392
393
394
395
396
397
398
399
400
401
402
403
404
|
obliterate = {
name = 'obliteration';
uses = 129;
color = {175,6,212};
affinity = {'aspen','dark'};
leytype = 'occlutic';
desc = 'Totally and irreversibly obliterate all items on an enchanter.';
};
sacrifice = {
name = 'sacrifice';
uses = 58;
color = {212,6,63};
affinity = {'aspen','blazing'};
leytype = 'syncretic';
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
|
obliterate = {
name = 'obliteration';
uses = 129;
color = {175,6,212};
affinity = {'aspen','dark'};
leytype = 'occlutic';
desc = 'Totally and irreversibly obliterate all items on an enchanter.';
cast = function(ctx)
if not ctx.target or ctx.target.type ~= 'node' then return false end
local tgt = minetest.get_node(ctx.target.under)
if tgt.name ~= 'sorcery:enchanter' then return false end
local inv = minetest.get_meta(ctx.target.under):get_inventory()
for _,name in pairs{'foci','item'} do
for i=1,inv:get_size(name) do
inv:set_stack(name,i,ItemStack(nil))
end
end
enchantment_sparkle(ctx,sorcery.lib.color(255,12,0))
enchantment_sparkle(ctx,sorcery.lib.color(85,18,35))
enchantment_sparkle(ctx,sorcery.lib.color(0,0,0))
end
};
sacrifice = {
name = 'sacrifice';
uses = 58;
color = {212,6,63};
affinity = {'aspen','blazing'};
leytype = 'syncretic';
|