mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-15 00:24:52 +09:00
.
This commit is contained in:
1 parent
c52a4a267b
commit
deb1e71dd7
1 file changed
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user