mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-02-19 19:10:33 +02:00
review feedback
This commit is contained in:
parent
b5b9a49fd1
commit
b5f70f2db1
@ -135,7 +135,7 @@ local function global_score_changed(event)
|
||||
return
|
||||
end
|
||||
|
||||
local count = event.new_value
|
||||
local count = ScoreTracker.get_for_global('satellites-launched')
|
||||
|
||||
if (count < 10) or ((count < 50) and ((count % 5) == 0)) or ((count % 25) == 0) then
|
||||
local message = 'A satellite has been launched! Total count: ' .. count
|
||||
|
@ -65,7 +65,7 @@ end
|
||||
---
|
||||
---@param player_index number
|
||||
---@param score_name string
|
||||
---@param value number|nil number to subtract or add
|
||||
---@param value number to subtract or add
|
||||
function Public.change_for_player(player_index, score_name, value)
|
||||
if not value or value == 0 then
|
||||
return
|
||||
@ -96,7 +96,7 @@ end
|
||||
---Sets a setting to a specific value for a player.
|
||||
---
|
||||
---@param score_name string
|
||||
---@param value number|nil number to subtract or add
|
||||
---@param value number to subtract or add
|
||||
function Public.change_for_global(score_name, value)
|
||||
if not value or value == 0 then
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user