clean up some TODOs

This commit is contained in:
FaceDeer
2022-08-13 02:22:30 -06:00
parent 6408f6b64c
commit b4e9cfaa4c
8 changed files with 29 additions and 28 deletions

View File

@ -191,6 +191,27 @@ if df_trees.config.enable_tnt then
local tnt_def = {radius = tnt_radius, damage_radius = tnt_radius * 2}
local torch_item = df_dependencies.node_name_torch
local drop_items = {
max_items = 1,
items = {
{
items = {'df_trees:tunnel_tube_sapling'},
rarity = 2,
},
}
}
if gunpowder then
drop_items.max_items = 3
table.insert(drop_items.items, {
items = {'df_trees:tunnel_tube_sapling', gunpowder},
rarity = 2,
})
table.insert(drop_items.items, {
items = {'df_trees:tunnel_tube_sapling', gunpowder .. ' 2'},
rarity = 2,
})
end
local on_burn = function(pos)
minetest.swap_node(pos, {name = "df_trees:tunnel_tube_fruiting_body_burning"})
minetest.registered_nodes["df_trees:tunnel_tube_fruiting_body_burning"].on_construct(pos)
@ -206,23 +227,7 @@ if df_trees.config.enable_tnt then
groups = {choppy = 3, oddly_breakable_by_hand=1, flammable = 2, tnt = 1, handy=1, hoey=1, shearsy=1, swordy=1, deco_block=1, dig_by_piston=1, fire_encouragement=15, fire_flammability=30},
sounds = df_dependencies.sound_wood(),
on_place = minetest.rotate_node,
drop = {
max_items = 3,
items = {
{
items = {'df_trees:tunnel_tube_sapling'},
rarity = 2,
},
{
items = {'df_trees:tunnel_tube_sapling', gunpowder},
rarity = 2,
},
{
items = {'df_trees:tunnel_tube_sapling', gunpowder .. ' 2'},
rarity = 2,
},
},
},
drop = drop_items,
_mcl_blast_resistance = 12,
_mcl_hardness = 2,