Phase out redundant standing/table inv. images

This commit is contained in:
kilbith 2015-05-04 10:56:07 +02:00
parent 495af4ce5c
commit 5cfc2a12c6
17 changed files with 12 additions and 11 deletions

View File

@ -371,12 +371,12 @@ local repl = { off="low", low="med", med="hi", hi="max", max="off", }
local brights_tab = { 0, 50, 100, 150, 200 }
local lamp_colors = {
"",
"blue",
"green",
"pink",
"red",
"violet"
{"white", "#ffffffe0:175"},
{"blue", "#2626c6e0:200"},
{"green", "#27a927e0:200"},
{"pink", "#ff8fb7e0:200"},
{"red", "#ad2323e0:200"},
{"violet", "#7f29d7e0:200"}
}
local tlamp_cbox = {
@ -390,9 +390,10 @@ local slamp_cbox = {
}
local function reg_lamp(suffix, nxt, tilesuffix, light, color)
local lampcolor = "_"..color
local colordesc = " ("..color..")"
local woolcolor = color
local lampcolor = "_"..color[1]
local colordesc = " ("..color[1]..")"
local woolcolor = color[1]
local invcolor = color[2]
local wool_brighten = (light or 0) * 7
local bulb_brighten = (light or 0) * 14
@ -411,7 +412,7 @@ local function reg_lamp(suffix, nxt, tilesuffix, light, color)
"homedecor_generic_wood_red.png",
"homedecor_generic_metal_black.png^[brighten",
},
inventory_image = "homedecor_table_lamp"..lampcolor.."_inv.png",
inventory_image = "homedecor_table_lamp_foot_inv.png^(homedecor_table_lamp_top_inv.png^[colorize:"..invcolor..")",
walkable = false,
light_source = light,
selection_box = tlamp_cbox,
@ -437,7 +438,7 @@ local function reg_lamp(suffix, nxt, tilesuffix, light, color)
"homedecor_generic_wood_red.png",
"homedecor_generic_metal_black.png^[brighten",
},
inventory_image = "homedecor_standing_lamp"..lampcolor.."_inv.png",
inventory_image = "homedecor_standing_lamp_foot_inv.png^(homedecor_standing_lamp_top_inv.png^[colorize:"..invcolor..")",
walkable = false,
light_source = light,
groups = {cracky=2,oddly_breakable_by_hand=1,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB