201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
...
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
|
props[#props+1] = {
title = e.name;
desc = e.desc;
color = sorcery.lib.color(e.tone);
}
local inf = mat.data.slots[s.slot].interference
if inf then for k,v in pairs(inf) do
interference[k] = interference[k] + v
end end
::skip::end
if #interference > 0 then
if interference.speed then stack = sorcery.data.enchants.pierce.apply(stack,-interference.speed,basecaps) end
if interference.durability then stack = sorcery.data.enchants.endure.apply(stack,-interference.durability,basecaps) end
end
meta = stack:get_meta() -- necessary? unclear
................................................................................
minetest.register_node('sorcery:enchanter', {
description = 'Enchanter';
drawtype = 'mesh';
mesh = 'sorcery-enchanter.obj';
paramtype = 'light';
paramtype2 = 'facedir';
groups = { cracky = 2, oddly_breakable_by_hand = 2 };
sunlight_propagates = true;
selection_box = hitbox;
collision_box = hitbox;
after_dig_node = sorcery.lib.node.purge_container;
tiles = {
"default_obsidian.png";
"default_steel_block.png";
|
|
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
...
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
|
props[#props+1] = {
title = e.name;
desc = e.desc;
color = sorcery.lib.color(e.tone);
}
local inf = mat.data.slots[s.slot].interference
if inf then for k,v in pairs(inf) do
interference[k] = (interference[k] or 0) + v
end end
::skip::end
if #interference > 0 then
if interference.speed then stack = sorcery.data.enchants.pierce.apply(stack,-interference.speed,basecaps) end
if interference.durability then stack = sorcery.data.enchants.endure.apply(stack,-interference.durability,basecaps) end
end
meta = stack:get_meta() -- necessary? unclear
................................................................................
minetest.register_node('sorcery:enchanter', {
description = 'Enchanter';
drawtype = 'mesh';
mesh = 'sorcery-enchanter.obj';
paramtype = 'light';
paramtype2 = 'facedir';
groups = { cracky = 2, oddly_breakable_by_hand = 2, sorcery_magitech = 1 };
sunlight_propagates = true;
selection_box = hitbox;
collision_box = hitbox;
after_dig_node = sorcery.lib.node.purge_container;
tiles = {
"default_obsidian.png";
"default_steel_block.png";
|