mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2025-01-26 03:20:21 +02:00
Add more broadcast messages for launches.
This commit is contained in:
parent
d52e9930b6
commit
0766349a5f
@ -35,12 +35,14 @@ function RocketLaunchEvent(event)
|
||||
-- Track additional satellites launched by this force
|
||||
if global.satellite_sent[force.name] then
|
||||
global.satellite_sent[force.name] = global.satellite_sent[force.name] + 1
|
||||
SendBroadcastMsg("Team " .. event.rocket.force.name .. " launched another rocket. Total " .. global.satellite_sent[force.name])
|
||||
ServerWriteFile("rocket_events", "Team " .. event.rocket.force.name .. " launched another rocket. Total " .. global.satellite_sent[force.name] .. "\n")
|
||||
|
||||
-- First sat launch for this force.
|
||||
else
|
||||
-- game.set_game_state{game_finished=true, player_won=true, can_continue=true}
|
||||
global.satellite_sent[force.name] = 1
|
||||
SendBroadcastMsg("Team " .. event.rocket.force.name .. " launched their first rocket!")
|
||||
ServerWriteFile("rocket_events", "Team " .. event.rocket.force.name .. " launched their first rocket!" .. "\n")
|
||||
|
||||
-- Unlock research
|
||||
|
Loading…
x
Reference in New Issue
Block a user