This commit is contained in:
phidias authored and GitHub committed 2026-11-13 00:07:08 +09:00
1 parent c52a4a267b
commit deb1e71dd7
1 file changed
+3 -2
+3 -2
View File
@@ -293,7 +293,7 @@ end
--- @return number
local function get_production_multiplier(s_index)
---@diagnostic disable-next-line: undefined-field
local surface = assert(config.global_surface and game.surface[1] or game.surfaces[s_index])
local surface = assert(config.global_surface and game.surface[1] or game.surfaces[s_index]) --[[@as LuaSurface]]
local multiplier = surface.solar_power_multiplier
if surface.always_day then
return multiplier
@@ -325,7 +325,8 @@ end
--- @param s_index number Surface index
--- @return number
local function get_sustained_multiplier(s_index)
local surface = assert(config.global_surface and game.surface[1] or game.surfaces[s_index])
---@diagnostic disable-next-line: undefined-field
local surface = assert(config.global_surface and game.surface[1] or game.surfaces[s_index]) --[[@as LuaSurface]]
local multiplier = surface.solar_power_multiplier
if surface.always_day then
return multiplier