From 773782b0d1fdbbb2c33fc2c9c5452b891a669a00 Mon Sep 17 00:00:00 2001 From: starfish <50672801+starfi5h@users.noreply.github.com> Date: Sat, 13 Apr 2024 12:48:50 +0800 Subject: [PATCH] Add missing Translate methods in battle notifications --- NebulaPatcher/Patches/Dynamic/DFRelayComponent_Patch.cs | 2 +- NebulaPatcher/Patches/Dynamic/DFTinderComponent_Patch.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NebulaPatcher/Patches/Dynamic/DFRelayComponent_Patch.cs b/NebulaPatcher/Patches/Dynamic/DFRelayComponent_Patch.cs index c85c0f416..583d9350e 100644 --- a/NebulaPatcher/Patches/Dynamic/DFRelayComponent_Patch.cs +++ b/NebulaPatcher/Patches/Dynamic/DFRelayComponent_Patch.cs @@ -79,7 +79,7 @@ public static bool LeaveBase_Prefix(DFRelayComponent __instance) var planet = GameMain.galaxy.PlanetById(__instance.targetAstroId); if (planet != null) { - Multiplayer.Session.Enemies.DisplayPlanetPingMessage("DF relay left from planet", __instance.targetAstroId, __instance.targetLPos); + Multiplayer.Session.Enemies.DisplayPlanetPingMessage("DF relay left from planet".Translate(), __instance.targetAstroId, __instance.targetLPos); } } diff --git a/NebulaPatcher/Patches/Dynamic/DFTinderComponent_Patch.cs b/NebulaPatcher/Patches/Dynamic/DFTinderComponent_Patch.cs index 6a4e8db4f..59d183bf3 100644 --- a/NebulaPatcher/Patches/Dynamic/DFTinderComponent_Patch.cs +++ b/NebulaPatcher/Patches/Dynamic/DFTinderComponent_Patch.cs @@ -24,7 +24,7 @@ public static bool DispatchFromHive_Prefix(ref DFTinderComponent __instance, int { __instance.targetHiveAstroId = _targetHiveAstroId; Multiplayer.Session.Network.SendPacket(new DFTinderDispatchPacket(__instance)); - Multiplayer.Session.Enemies.DisplayAstroMessage("Dark Fog seed send out from".Translate(), hive1.starData.astroId); + Multiplayer.Session.Enemies.DisplayAstroMessage("DF seed sent out from".Translate(), hive1.starData.astroId); } return true; }