about summary refs log tree commit diff stats
path: root/AnodyneArchipelago
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-26 01:04:08 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-26 01:04:08 -0400
commit594f1751bba1744623681efec01ea628e9b69dcb (patch)
treea78e6b3783f7dad2595a2722c8fc135a5f890704 /AnodyneArchipelago
parentd179faefd1d663347fb1a332b3c15bb9cf373955 (diff)
downloadanodyne-archipelago-594f1751bba1744623681efec01ea628e9b69dcb.tar.gz
anodyne-archipelago-594f1751bba1744623681efec01ea628e9b69dcb.tar.bz2
anodyne-archipelago-594f1751bba1744623681efec01ea628e9b69dcb.zip
Credits sends goal now
Diffstat (limited to 'AnodyneArchipelago')
-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}