This commit is contained in:
_nebula 2023-01-22 19:51:03 +00:00
parent 67ba18fa84
commit 58e97e44a1

View File

@ -95,7 +95,7 @@ internal class QuantumMoonPatches : QSBPatch
return false; return false;
} }
private static bool GetShipInFog(QuantumMoon moon) public static bool GetShipInFog(QuantumMoon moon)
{ {
if (ShipManager.Instance.IsShipWrecked) if (ShipManager.Instance.IsShipWrecked)
{ {
@ -108,7 +108,7 @@ internal class QuantumMoonPatches : QSBPatch
return distanceFromFog < 10f; return distanceFromFog < 10f;
} }
private static bool GetTransformInFog(QuantumMoon moon, Transform transform) public static bool GetTransformInFog(QuantumMoon moon, Transform transform)
{ {
var distance = Vector3.Distance(moon.transform.position, transform.position); var distance = Vector3.Distance(moon.transform.position, transform.position);
var fogOffset = (moon._stateIndex == 5) ? moon._eyeStateFogOffset : 0f; var fogOffset = (moon._stateIndex == 5) ? moon._eyeStateFogOffset : 0f;