mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix Stranger cloak breaking
This commit is contained in:
parent
0e06df1586
commit
3b40fac5a4
@ -1,6 +1,7 @@
|
|||||||
using NewHorizons.Components.Stars;
|
using NewHorizons.Components.Stars;
|
||||||
using NewHorizons.Handlers;
|
using NewHorizons.Handlers;
|
||||||
using NewHorizons.Utility.OWML;
|
using NewHorizons.Utility.OWML;
|
||||||
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace NewHorizons.Components.EOTE
|
namespace NewHorizons.Components.EOTE
|
||||||
@ -12,11 +13,17 @@ namespace NewHorizons.Components.EOTE
|
|||||||
|
|
||||||
public void Start()
|
public void Start()
|
||||||
{
|
{
|
||||||
// Enable and disable all cloaks, else Stranger state is weird at the start
|
if (CloakHandler.Cloaks.Any())
|
||||||
foreach (var cloak in CloakHandler.Cloaks)
|
|
||||||
{
|
{
|
||||||
SetCurrentCloak(cloak);
|
// Enable and disable all cloaks, else Stranger state is weird at the start
|
||||||
cloak.enabled = false;
|
foreach (var cloak in CloakHandler.Cloaks)
|
||||||
|
{
|
||||||
|
SetCurrentCloak(cloak);
|
||||||
|
cloak.enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make sure a cloak is enabled
|
||||||
|
SetCurrentCloak(CloakHandler.Cloaks.First());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user