1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2024-12-26 22:56:43 +02:00

Mtn v3 - don't send notification if wave is less than 500

This commit is contained in:
Gerkiz 2023-09-19 09:00:39 +02:00
parent 4bd0075723
commit f3797ba056
2 changed files with 9 additions and 13 deletions

View File

@ -1234,42 +1234,35 @@ local function show_mvps(player)
inline = 'true'
},
field2 = {
text1 = 'Game Difficulty:',
text2 = diff.name,
inline = 'true',
emptyField = 'true',
emptyInline = 'true'
},
field3 = {
text1 = 'Highest wave:',
text2 = format_number(wave, true),
inline = 'true'
},
field4 = {
field3 = {
text1 = 'Total connected players:',
text2 = total_players,
inline = 'true',
emptyField = 'true',
emptyInline = 'true'
},
field5 = {
field4 = {
text1 = 'Threat:',
text2 = format_number(threat, true),
inline = 'true'
},
field6 = {
field5 = {
text1 = 'Pickaxe Upgrade:',
text2 = pick_tier .. ' (' .. upgrades.pickaxe_tier .. ')',
inline = 'true',
emptyField = 'true',
emptyInline = 'true'
},
field7 = {
field6 = {
text1 = 'Collapse Speed:',
text2 = collapse_speed,
inline = 'true'
},
field8 = {
field7 = {
text1 = 'Collapse Amount:',
text2 = collapse_amount,
inline = 'true',

View File

@ -113,6 +113,7 @@ local announce_new_map =
)
function Public.reset_map()
local wave = WD.get_wave()
local this = Public.get()
local wave_defense_table = WD.get_table()
Misc.set('creative_are_you_sure', false)
@ -294,7 +295,9 @@ function Public.reset_map()
WD.disable_spawning_biters(true)
end
Task.set_timeout_in_ticks(25, announce_new_map)
if wave >= 1000 then
Task.set_timeout_in_ticks(25, announce_new_map)
end
end
local is_locomotive_valid = function()