mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix
This commit is contained in:
1 parent
d30c645a37
commit
bd73f4cef5
6 files changed
+367
-372
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user