1
0
mirror of https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git synced 2025-10-08 22:52:03 +02:00

Update changelog and add a simple message to host force if your crashed ship is destroyed.

This commit is contained in:
Oarcinae
2025-05-16 12:37:44 -04:00
parent 7089e638c1
commit 46418a4fae
2 changed files with 13 additions and 2 deletions

View File

@@ -1,7 +1,10 @@
---------------------------------------------------------------------------------------------------
Version: 2.1.24
Date: ????
Changes:
Date: 2025-05-16
Bugfixes:
- Fix that player's couldn't access their own crash site ship if friendly forces was disabled. The crashed ship is now on the host's force.
Info:
- Added a simple crashed ship was destroyed message (by request) only if the ship dies and friendly forces is disabled.
---------------------------------------------------------------------------------------------------
Version: 2.1.23
Date: 2025-01-19

View File

@@ -418,6 +418,14 @@ script.on_event(defines.events.on_entity_damaged, function(event)
end,
{{filter="type", type = "unit-spawner"}})
-- Notify player if their crash-site spaceship is dead, only for PVP
script.on_event(defines.events.on_entity_died, function(event)
if storage.ocfg.gameplay.enable_friendly_teams then return end
local force = event.entity.force ---@type LuaForce
CompatSend(force, "[color=red]Warning:[/color] Your crashed ship was destroyed!")
end,
{{filter = "name", name = "crash-site-spaceship"}})
----------------------------------------
-- Gui Events
----------------------------------------