1
0
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:
Oarcinae 2019-07-02 18:13:15 -05:00
parent d52e9930b6
commit 0766349a5f

View File

@ -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