This commit is contained in:
Gurge44 committed 2025-07-15 11:28:17 +02:00
1 parent d30c645a37
commit bd73f4cef5
6 files changed
+367 -372

No files matched your search

+4 -4
View File
@@ -1966,12 +1966,12 @@ internal static class FixedUpdatePatch
public static void LoversSuicide(byte deathId = 0x7f, bool exile = false, bool force = false, bool guess = false)
{
if (Options.CurrentGameMode != CustomGameMode.Standard) return;
if (Lovers.LoverDieConsequence.GetValue() == 0 || Main.IsLoversDead || (!Main.LoversPlayers.Exists(player => !player.IsAlive() && player.PlayerId == deathId) && !force)) return;
if (Lovers.LoverDieConsequence.GetValue() == 0 || Main.IsLoversDead || (Main.LoversPlayers.FindAll(x => x.IsAlive()).Count != 1 && !force)) return;
PlayerControl partnerPlayer = Main.LoversPlayers.FirstOrDefault(player => player.PlayerId != deathId && player.IsAlive());
if (partnerPlayer == null) return;
Main.IsLoversDead = true;
PlayerControl partnerPlayer = Main.LoversPlayers.FirstOrDefault(player => player.PlayerId != deathId && player.IsAlive());
if (partnerPlayer == null) return;
if (Lovers.LoverDieConsequence.GetValue() == 2)
{