-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathself_events.lua
More file actions
14 lines (12 loc) · 630 Bytes
/
Copy pathself_events.lua
File metadata and controls
14 lines (12 loc) · 630 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- https://mods.factorio.com/mod/diplomacy/discussion/5dea3f4e8b3bf8000d9ac387
-- Called when someone/something changed a diplomacy relationship to ally/neutral/enemy.
-- Contains:
-- source :: LuaForce: The force that changed current diplomacy relationship.
-- destination :: LuaForce: The force which have to accept new diplomacy relationship.
-- player_index :: uint (optional): The player who cause the changing.
-- prev_relationship :: string: Previous relationship between forces.
return {
on_ally = script.generate_event_name(),
on_neutral = script.generate_event_name(),
on_enemy = script.generate_event_name()
}