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