mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-22 15:33:12 +09:00
.
This commit is contained in:
1 parent
4018633f92
commit
73a28ee052
1 file changed
+3
-3
@@ -44,11 +44,11 @@ local stats = {}
|
|||||||
for _, name in ipairs{ "production", "sustained", "capacity", "surface-area", "solar-panel", "accumulator" } do
|
for _, name in ipairs{ "production", "sustained", "capacity", "surface-area", "solar-panel", "accumulator" } do
|
||||||
stats[#stats + 1] = {
|
stats[#stats + 1] = {
|
||||||
name = name,
|
name = name,
|
||||||
caption = (name == "solar" or name == "accumulator")
|
caption = (name == "solar-panel" or name == "accumulator")
|
||||||
and { "", "[img=entity/" .. name .. "]", prototypes.entity[name].localised_name }
|
and { "", "[img=entity/" .. name .. "]", prototypes.entity[name].localised_name }
|
||||||
or { "exp-gui_vlayer.caption-stat-" .. name },
|
or { "exp-gui_vlayer.caption-stat-" .. name },
|
||||||
tooltip = (name == "solar" or name == "accumulator")
|
tooltip = (name == "solar-panel" or name == "accumulator")
|
||||||
and nil
|
and { prototypes.entity[name].localised_description }
|
||||||
or { "exp-gui_vlayer.tooltip-stat-" .. name },
|
or { "exp-gui_vlayer.tooltip-stat-" .. name },
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user