about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--AnodyneArchipelago/ArchipelagoManager.cs9
-rw-r--r--AnodyneArchipelago/Patches/StatePatches.cs10
2 files changed, 19 insertions, 0 deletions
diff --git a/AnodyneArchipelago/ArchipelagoManager.cs b/AnodyneArchipelago/ArchipelagoManager.cs index 0ca2e6a..9a3ac59 100644 --- a/AnodyneArchipelago/ArchipelagoManager.cs +++ b/AnodyneArchipelago/ArchipelagoManager.cs
@@ -249,6 +249,15 @@ namespace AnodyneArchipelago
249 GlobalState.Dialogue = message; 249 GlobalState.Dialogue = message;
250 } 250 }
251 251
252 public void ActivateGoal()
253 {
254 var statusUpdatePacket = new StatusUpdatePacket
255 {
256 Status = ArchipelagoClientState.ClientGoal
257 };
258 _session.Socket.SendPacket(statusUpdatePacket);
259 }
260
252 private void OnMessageReceived(LogMessage message) 261 private void OnMessageReceived(LogMessage message)
253 { 262 {
254 switch (message) 263 switch (message)
diff --git a/AnodyneArchipelago/Patches/StatePatches.cs b/AnodyneArchipelago/Patches/StatePatches.cs index 31c0aef..c1e03fe 100644 --- a/AnodyneArchipelago/Patches/StatePatches.cs +++ b/AnodyneArchipelago/Patches/StatePatches.cs
@@ -117,4 +117,14 @@ namespace AnodyneArchipelago.Patches
117 } 117 }
118 } 118 }
119 } 119 }
120
121 [HarmonyPatch(typeof(CreditsState), MethodType.Constructor, new Type[] {})]
122 static class CreateCreditsPatch
123 {
124 static void Postfix()
125 {
126 Plugin.IsGamePaused = true;
127 Plugin.ArchipelagoManager.ActivateGoal();
128 }
129 }
120} 130}