1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-06-28 12:56:01 +02:00

whitespace cleanup:

* remove all trailing whitespaces
* make inbox and computer use the prevalent indentation rules
* CRLF->LF where found
This commit is contained in:
Tim
2015-01-20 23:59:50 +01:00
parent 29bf986ea8
commit be4ed12b6c
31 changed files with 691 additions and 691 deletions

View File

@ -88,7 +88,7 @@ minetest.register_node("homedecor:desk_fan", {
speedy_meta:set_string("active", "no")
print (speedy_meta:get_string("active"))
end
if entity_anim[1] == nil then
minetest.add_entity({x=pos.x, y=pos.y, z=pos.z}, "homedecor:mesh_desk_fan") --+(0.0625*10)
local entity_remove = minetest.get_objects_inside_radius(pos, 0.1)

View File

@ -119,23 +119,23 @@ function homedecor.rotate_cobweb(pos)
-- only xm+zp, or only xp+zm means on-floor torchlike
if (iswall_xm and iswall_zp and not iswall_xp and not iswall_zm)
or (iswall_xp and iswall_zm and not iswall_xm and not iswall_zp) then
or (iswall_xp and iswall_zm and not iswall_xm and not iswall_zp) then
minetest.set_node(pos, {name = "homedecor:cobweb_corner", param2 = 1})
-- only xm+zm, or only xp+zp means on-ceiling torchlike
elseif (iswall_xm and iswall_zm and not iswall_xp and not iswall_zp)
or (iswall_xp and iswall_zp and not iswall_xm and not iswall_zm) then
elseif (iswall_xm and iswall_zm and not iswall_xp and not iswall_zp)
or (iswall_xp and iswall_zp and not iswall_xm and not iswall_zm) then
minetest.set_node(pos, {name = "homedecor:cobweb_corner", param2 = 0})
-- only xm+xp means nodebox (not rotated, 0 degrees)
elseif iswall_xm and iswall_xp and not iswall_zm and not iswall_zp then
elseif iswall_xm and iswall_xp and not iswall_zm and not iswall_zp then
minetest.set_node(pos, {name = "homedecor:cobweb_centered", param2 = 0})
-- only zm+zp means nodebox rotated to 90 degrees
elseif iswall_zm and iswall_zp and not iswall_xm and not iswall_xp then
elseif iswall_zm and iswall_zp and not iswall_xm and not iswall_xp then
minetest.set_node(pos, {name = "homedecor:cobweb_centered", param2 = 1})
-- ok, there aren't any simple two-wall corners or opposing walls.
@ -152,7 +152,7 @@ function homedecor.rotate_cobweb(pos)
elseif iswall_zp and not iswall_xm and not iswall_xp and not iswall_zm then
minetest.set_node(pos, {name = "homedecor:cobweb_flat", param2 = 0})
-- if all else fails, place the plantlike version as a fallback.
else

View File

@ -406,7 +406,7 @@ minetest.register_craft( {
minetest.register_craft( {
output = "homedecor:glass_table_large_b 2",
recipe = {
recipe = {
{ "homedecor:glass_table_small_square", "homedecor:glass_table_small_square" },
}
})
@ -424,14 +424,14 @@ minetest.register_craft( {
minetest.register_craft( {
output = "homedecor:wood_table_small_square_b 2",
recipe = {
recipe = {
{ "homedecor:wood_table_small_round","homedecor:wood_table_small_round" },
}
})
minetest.register_craft( {
output = "homedecor:wood_table_large_b 2",
recipe = {
recipe = {
{ "homedecor:wood_table_small_square", "homedecor:wood_table_small_square" },
}
})
@ -495,7 +495,7 @@ minetest.register_craft({
minetest.register_craft( {
output = "homedecor:skylight 4",
recipe = {
recipe = {
{ "homedecor:glass_table_large", "homedecor:glass_table_large" },
{ "homedecor:glass_table_large", "homedecor:glass_table_large" },
},
@ -1842,7 +1842,7 @@ minetest.register_craft( {
},
})
-- woodglass door
-- woodglass door
minetest.register_craft( {
output = "homedecor:door_woodglass_bottom_left",
@ -2370,7 +2370,7 @@ minetest.register_craft( {
-- bathroom/kitchen tiles
local color_pairings = {
local color_pairings = {
{ "grey", "white", "1" },
{ "dark_grey", "white", "2" },
{ "black", "white", "3" },
@ -2917,7 +2917,7 @@ minetest.register_craft({
"homedecor:bottle_brown",
"homedecor:bottle_brown",
"homedecor:bottle_brown",
"homedecor:bottle_brown"
"homedecor:bottle_brown"
},
})
@ -2928,7 +2928,7 @@ minetest.register_craft({
"homedecor:bottle_green",
"homedecor:bottle_green",
"homedecor:bottle_green",
"homedecor:bottle_green"
"homedecor:bottle_green"
},
})

View File

@ -22,7 +22,7 @@ homedecor.door_models = {
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
{ -8/16, 10/32, 13/32, 8/16, 11/32, 15/32 },
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
@ -54,7 +54,7 @@ homedecor.door_models = {
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
{ -8/16, 10/32, 13/32, 8/16, 11/32, 15/32 },
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
@ -93,7 +93,7 @@ homedecor.door_models = {
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
{ -8/16, 10/32, 13/32, 8/16, 11/32, 15/32 },
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },
@ -125,7 +125,7 @@ homedecor.door_models = {
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 },
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }},
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
{{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16},
{ -8/16, 10/32, 13/32, 8/16, 11/32, 15/32 },
{ -8/16, 8/32, 13/32, 8/16, 9/32, 15/32 },
{ -8/16, 6/32, 13/32, 8/16, 7/32, 15/32 },

View File

@ -21,8 +21,8 @@ local function countSolids(pos,node,level)
for x = -1, 1 do
for z = -1, 1 do
local y = 0
if node.param2 == 5 then
y = -level
if node.param2 == 5 then
y = -level
else
y = level
end
@ -89,9 +89,9 @@ local function calculateClosed(pos)
return true
end
end
return false
return false
else
-- direction == 3 or 4
-- direction == 3 or 4
if isSolid(pos,{-1,0,0}) and isSolid(pos,{1,0,0}) then
if string.find(node.name,'_bottom_') then
return calculateClosed({x=pos.x,y=pos.y+1,z=pos.z})
@ -229,7 +229,7 @@ for i in ipairs(sides) do
})
local dgroups = {snappy=3, not_in_creative_inventory=1}
if side == "left" then
if side == "left" then
dgroups = {snappy=3}
end
@ -319,7 +319,7 @@ local gate_models_open = {
{{ 0.498, -0.5, -0.5, 0.498, 0.5, 0.5 }},
{{ 0.498, -0.5, -0.5, 0.498, 0.5, 0.5 }},
{{ 6/16, -8/16, -8/16, 8/16, 8/16, -6/16 }, -- left post
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }, -- right post
{ 13/32, 7/16, -8/16, 15/32, 8/16, 8/16 }, -- top piece
@ -452,7 +452,7 @@ function homedecor.place_door(itemstack, placer, pointed_thing, name, forceright
return
end
if not homedecor.get_nodedef_field(node_bottom.name, "buildable_to")
if not homedecor.get_nodedef_field(node_bottom.name, "buildable_to")
or not homedecor.get_nodedef_field(node_top.name, "buildable_to") then
minetest.chat_send_player( placer:get_player_name(), S('Not enough space above that spot to place a door!') )
else
@ -598,7 +598,7 @@ minetest.register_node("homedecor:japanese_wall_top", {
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, 0, 0.5, 0.5, 0.0625},
fixed = {-0.5, -0.5, 0, 0.5, 0.5, 0.0625},
}
})
@ -634,7 +634,7 @@ minetest.register_node("homedecor:japanese_wall_middle", {
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, 0, 0.5, 0.5, 0.0625},
fixed = {-0.5, -0.5, 0, 0.5, 0.5, 0.0625},
}
})
@ -669,7 +669,7 @@ minetest.register_node("homedecor:japanese_wall_bottom", {
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, 0, 0.5, 0.5, 0.0625},
fixed = {-0.5, -0.5, 0, 0.5, 0.5, 0.0625},
}
})
@ -710,7 +710,7 @@ minetest.register_node("homedecor:jpn_door_bottom", {
groups = { snappy = 3 },
node_box = {
type = "fixed",
fixed = {
fixed = {
{-0.5, -0.5, 0.03125, 0.5, 0.5, 0.03125}, -- NodeBox1
{-0.5, -0.5, 0, -0.44, 0.5, 0.0625}, -- NodeBox2
{0.44, -0.5, 0, 0.5, 0.5, 0.0625}, -- NodeBox3
@ -724,7 +724,7 @@ minetest.register_node("homedecor:jpn_door_bottom", {
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, 0, 0.5, 1.5, 0.0625},
fixed = {-0.5, -0.5, 0, 0.5, 1.5, 0.0625},
},
on_place = function(itemstack, placer, pointed_thing)
@ -768,7 +768,7 @@ minetest.register_node("homedecor:jpn_door_top", {
groups = { snappy = 3, not_in_creative_inventory = 1 },
node_box = {
type = "fixed",
fixed = {
fixed = {
{-0.5, -0.5, 0.03125, 0.5, 0.5, 0.03125}, -- NodeBox1
{-0.5, -0.5, 0, -0.44, 0.5, 0.0625}, -- NodeBox2
{0.44, -0.5, 0, 0.5, 0.5, 0.0625}, -- NodeBox3
@ -800,7 +800,7 @@ minetest.register_node("homedecor:jpn_door_bottom_open", {
groups = { snappy = 3, not_in_creative_inventory = 1 },
node_box = {
type = "fixed",
fixed = {
fixed = {
{-1.5, -0.5, -0.03125, -0.5, 0.5, -0.03125}, -- NodeBox1
{-1.5, -0.5, -0.0625, -1.44, 0.5, 0}, -- NodeBox2
{-0.5625, -0.5, -0.0625, -0.5, 0.5, 0}, -- NodeBox3
@ -844,7 +844,7 @@ minetest.register_node("homedecor:jpn_door_top_open", {
groups = { snappy = 3, not_in_creative_inventory = 1 },
node_box = {
type = "fixed",
fixed = {
fixed = {
{-1.5, -0.5, -0.03125, -0.5, 0.5, -0.03125}, -- NodeBox1
{-1.5, -0.5, -0.0625, -1.44, 0.5, 0}, -- NodeBox2
{-0.5625, -0.5, -0.0625, -0.5, 0.5, 0}, -- NodeBox3

View File

@ -280,7 +280,7 @@ minetest.register_node("homedecor:fence_privacy_corner", {
fixed = {
{ -0.5, -0.5, 5/16, 0.5, 0.5, 0.5 },
{ -0.5, -0.5, -0.5, -5/16, 0.5, 5/16 },
}
}
},
node_box = {
type = "fixed",
@ -318,7 +318,7 @@ minetest.register_node("homedecor:fence_barbed_wire", {
{ -8/16, -8/16, 6/16, -6/16, 8/16, 8/16 }, -- left post
{ 6/16, -8/16, 6/16, 8/16, 8/16, 8/16 }, -- right post
{ -6/16, -8/16, 7/16, 6/16, 8/16, 7/16 } -- the wire
}
}
},
})
@ -350,7 +350,7 @@ minetest.register_node("homedecor:fence_barbed_wire_corner", {
{ -8/16, -8/16, -8/16, -6/16, 8/16, -6/16 }, -- front post
{ -7/16, -8/16, -6/16, -7/16, 8/16, 6/16 } -- more wire
}
}
},
})
@ -383,7 +383,7 @@ minetest.register_node("homedecor:fence_chainlink", {
{ -8/16, 7/16, 13/32, 8/16, 8/16, 15/32 }, -- top piece
{ -8/16, -8/16, 13/32, 8/16, -7/16, 15/32 }, -- bottom piece
{ -8/16, -8/16, 7/16, 8/16, 8/16, 7/16 } -- the chainlink itself
}
}
},
})
@ -458,7 +458,7 @@ minetest.register_node("homedecor:fence_wrought_iron_2", {
{ -0.015625, -8/16, 14.75/32, 0.015625, 8/16, 15.25/32 }, -- cross piece
{ -8/16, -8/16, 14/32, 8/16, -7.75/16, 16/32 }, -- bottom piece
{ -8/16, -8/16, 15/32, 8/16, 8/16, 15/32 } -- the grid itself
}
}
},
})

View File

@ -263,13 +263,13 @@ function homedecor.register_furnace(name, furnacedef)
local srclist = inv:get_list("src")
local cooked = nil
local aftercooked
if srclist then
cooked, aftercooked = minetest.get_craft_result({method = "cooking", width = 1, items = srclist})
end
local was_active = false
if meta:get_float("fuel_time") < meta:get_float("fuel_totaltime") then
was_active = true
meta:set_float("fuel_time", meta:get_float("fuel_time") + 1)
@ -306,7 +306,7 @@ function homedecor.register_furnace(name, furnacedef)
local cooked = nil
local fuellist = inv:get_list("fuel")
local srclist = inv:get_list("src")
if srclist then
cooked = minetest.get_craft_result({method = "cooking", width = 1, items = srclist})
end

View File

@ -34,7 +34,7 @@ for _, i in ipairs(table_colors) do
},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
})
})
end
local chaircolors = {
@ -52,7 +52,7 @@ for i in ipairs(chaircolors) do
local color = "_"..chaircolors[i][1]
local color2 = chaircolors[i][1]
local name = S(chaircolors[i][2])
local chairtiles = {
local chairtiles = {
"forniture_kitchen_chair_top"..color..".png",
"forniture_wood.png",
"forniture_kitchen_chair_sides"..color..".png",
@ -60,7 +60,7 @@ for i in ipairs(chaircolors) do
"forniture_kitchen_chair_back"..color..".png",
"forniture_kitchen_chair_front"..color..".png",
}
if chaircolors[i][1] == "" then
if chaircolors[i][1] == "" then
color = ""
chairtiles = { "forniture_wood.png" }
end
@ -89,7 +89,7 @@ for i in ipairs(chaircolors) do
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
})
if color ~= "" then
if color ~= "" then
minetest.register_node("homedecor:armchair"..color, {
description = S("Armchair (%s)"):format(name),
tiles = { "forniture_armchair_top"..color..".png" },
@ -197,7 +197,7 @@ local function unextend_bed(pos, color)
end
for _, color in ipairs(bedcolors) do
minetest.register_node("homedecor:bed_"..color.."_head", {
tiles = {
"homedecor_bed_"..color.."_top1.png",
@ -262,12 +262,12 @@ for _, color in ipairs(bedcolors) do
on_construct = function(pos)
bed_extension(pos, color)
end,
on_place = function(itemstack, placer, pointed_thing)
return homedecor.stack_sideways(itemstack, placer, pointed_thing,
"homedecor:bed_"..color.."_foot", "homedecor:bed_"..color.."_head", false)
end,
after_dig_node = function(pos, oldnode, oldmetadata, digger)
local fdir = oldnode.param2
if not fdir or fdir > 3 then return end
@ -278,7 +278,7 @@ for _, color in ipairs(bedcolors) do
unextend_bed(pos, color)
end
})
minetest.register_node("homedecor:bed_"..color.."_footext", {
tiles = {
"homedecor_bed_"..color.."_top2.png",
@ -317,7 +317,7 @@ for _, color in ipairs(bedcolors) do
end,
drop = "homedecor:bed_"..color.."_foot"
})
end
minetest.register_node("homedecor:wardrobe_top", {

View File

@ -114,7 +114,7 @@ minetest.register_node("homedecor:chains", {
fixed = {-1/2, -1/2, 1/4, 1/2, 1/2, 1/2},
},
groups = {cracky=1},
})
})
minetest.register_node("homedecor:torch_wall", {
description = S("Wall Torch"),

View File

@ -4,7 +4,7 @@
-- lua files and from ironzorg's flowers mod. Many thanks to GloopMaster
-- for helping me figure out the inventories used in the nightstands/dressers.
--
-- The code for ovens, nightstands, refrigerators are basically modified
-- The code for ovens, nightstands, refrigerators are basically modified
-- copies of the code for chests and furnaces.
homedecor = {}
@ -57,7 +57,7 @@ function homedecor.table_copy(t)
return nt
end
--
--
function homedecor.get_nodedef_field(nodename, fieldname)
if not minetest.registered_nodes[nodename] then

View File

@ -64,7 +64,7 @@ for _, mat in ipairs(counter_materials) do
})
end
minetest.register_node('homedecor:kitchen_cabinet_half', {
minetest.register_node('homedecor:kitchen_cabinet_half', {
drawtype="nodebox",
description = S('Half-height Kitchen Cabinet (on ceiling)'),
tiles = { 'homedecor_kitchen_cabinet_sides.png',

View File

@ -278,17 +278,17 @@ minetest.register_node('homedecor:candle', {
},
node_box = {
type = "fixed",
fixed = {
fixed = {
{ -0.125, -0.5, -0.125, 0.125, 0, 0.125 },
{ -0.125, 0, 0, 0.125, 0.5, 0 },
{ 0, 0, -0.125, 0, 0.5, 0.125 }
}
}
},
selection_box = {
type = "fixed",
fixed = {
fixed = {
{ -0.1875, -0.5, -0.1875, 0.1875, 0.5, 0.1875 },
}
}
},
sunlight_propagates = true,
paramtype = "light",
@ -308,9 +308,9 @@ minetest.register_node('homedecor:candle_thin', {
},
selection_box = {
type = "fixed",
fixed = {
fixed = {
{ -0.1, -0.5, -0.1, 0.125, 0.05, 0.125 },
}
}
},
sunlight_propagates = true,
paramtype = "light",
@ -331,9 +331,9 @@ minetest.register_node('homedecor:oil_lamp', {
walkable = true,
selection_box = {
type = "fixed",
fixed = {
fixed = {
{ -0.3, -0.5, -0.3, 0.3, 0.5, 0.3 },
}
}
},
groups = { snappy = 3 },
light_source = LIGHT_MAX-4,
@ -351,9 +351,9 @@ minetest.register_node('homedecor:wall_lantern', {
walkable = true,
selection_box = {
type = "fixed",
fixed = {
fixed = {
{ -0.3, -0.5, -0.3, 0.3, 0.5, 0.3 },
}
}
},
groups = { snappy = 3 },
light_source = LIGHT_MAX-4,
@ -471,7 +471,7 @@ local function reg_lamp(suffix, nxt, tilesuffix, light, color)
minetest.register_alias("homedecor:standing_lamp_top"..lampcolor.."_"..suffix, "air")
-- for old maps that had 3dfornit`ure
if lampcolor == "" then
if lampcolor == "" then
minetest.register_alias("3dforniture:table_lamp_"..suffix, "homedecor:table_lamp_"..suffix)
end
end

View File

@ -162,7 +162,7 @@ minetest.register_node("homedecor:toilet_paper", {
inventory_image = "homedecor_toilet_paper_inv.png",
paramtype = "light",
paramtype2 = "facedir",
selection_box = {
selection_box = {
type = "fixed",
fixed = { -0.1875, 0.125, 0.0625, 0.25, 0.4375, 0.5 }
},

View File

@ -143,7 +143,7 @@ minetest.register_node("homedecor:pole_brass", {
sounds = default.node_sound_wood_defaults(),
walkable = true,
})
minetest.register_node("homedecor:pole_wrought_iron", {
description = S("Wrought Iron Pole"),
drawtype = "nodebox",
@ -967,7 +967,7 @@ minetest.register_node("homedecor:doorbell", {
pos = pos,
gain = 1.0,
max_hear_distance = 15
})
})
end
})
@ -1421,7 +1421,7 @@ minetest.register_node("homedecor:sportbench", {
tiles = {
"homedecor_sportbench_top.png",
"wool_black.png",
"homedecor_sportbench_left.png^[transformFX",
"homedecor_sportbench_left.png^[transformFX",
"homedecor_sportbench_left.png",
"homedecor_sportbench_bottom.png",
"homedecor_sportbench_front.png"
@ -1526,7 +1526,7 @@ minetest.register_node("homedecor:paper_towel", {
paramtype = "light",
paramtype2 = "facedir",
groups = { snappy=3 },
selection_box = {
selection_box = {
type = "fixed",
fixed = { -0.4375, 0.125, 0.0625, 0.4375, 0.4375, 0.5 }
},
@ -1673,7 +1673,7 @@ minetest.register_node("homedecor:beer_tap", {
local inv = puncher:get_inventory()
local wieldname = wielditem:get_name()
if wieldname == "vessels:drinking_glass" then
if wieldname == "vessels:drinking_glass" then
if inv:room_for_item("main", "homedecor:beer_mug 1") then
wielditem:take_item()
puncher:set_wielded_item(wielditem)
@ -1725,7 +1725,7 @@ minetest.register_node("homedecor:tool_cabinet_bottom", {
"homedecor_tool_cabinet_bottom_sides.png",
"homedecor_tool_cabinet_bottom_sides.png",
"homedecor_tool_cabinet_bottom_sides.png",
"homedecor_tool_cabinet_bottom_sides.png",
"homedecor_tool_cabinet_bottom_sides.png",
"homedecor_tool_cabinet_bottom_front.png"
},
inventory_image = "homedecor_tool_cabinet_inv.png",

View File

@ -68,7 +68,7 @@ for i in ipairs(materials) do
minetest.register_node('homedecor:'..m..'_table_large', {
description = S(d.." Table Piece (large)"),
drawtype = 'nodebox',
tiles = {
tiles = {
'homedecor_'..m..'_table_large_tb.png',
'homedecor_'..m..'_table_large_tb.png',
'homedecor_'..m..'_table_large_edges.png',

View File

@ -184,7 +184,7 @@ for c in ipairs(curtaincolors) do
-- Open the curtains
on_rightclick = function(pos, node, clicker, itemstack)
local topnode = minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z})
if string.find(topnode.name, "homedecor:curtainrod") then
if string.find(topnode.name, "homedecor:curtainrod") then
local fdir = node.param2
minetest.set_node(pos, { name = "homedecor:curtain_open_"..color, param2 = fdir })
end
@ -211,7 +211,7 @@ for c in ipairs(curtaincolors) do
-- Close the curtains
on_rightclick = function(pos, node, clicker, itemstack)
local topnode = minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z})
if string.find(topnode.name, "homedecor:curtainrod") then
if string.find(topnode.name, "homedecor:curtainrod") then
local fdir = node.param2
minetest.set_node(pos, { name = "homedecor:curtain_"..color, param2 = fdir })
end