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