removed debug macro's

This commit is contained in:
Valentijn
2026-05-30 14:38:10 +02:00
parent aeebdbc0f1
commit fa4445fdc7

View File

@@ -25,11 +25,37 @@ public class LeverPatch
LungProp[] allApparatuses = Object.FindObjectsOfType<LungProp>(); LungProp[] allApparatuses = Object.FindObjectsOfType<LungProp>();
// ========================================== // Checking if its actually been pulled.
// QUICK DEBUG MACROS bool isApparatusPulled = true;
// ==========================================
if (Keyboard.current != null) foreach (LungProp apparatus in allApparatuses)
{ {
// if any of the Lungs are NOT in the ship, that means theres still 1 (or more) in the facility.
if (!apparatus.isInShipRoom)
{
isApparatusPulled = false;
break;
}
}
if (!isApparatusPulled)
{
__instance.triggerScript.hoverTip = "Pull lever : [Start Ship]\n<color=#FF0000>WARNING: Launching without Apparatus in the Ship!</color>";
}
else
{
__instance.triggerScript.hoverTip = "Pull lever : [Start Ship]";
}
}
}
/*
// ==========================================
// QUICK DEBUG MACROS
// ==========================================
if (Keyboard.current != null)
{
// Press Numpad Minus (-) to Teleport to the UNSECURED Apparatus // Press Numpad Minus (-) to Teleport to the UNSECURED Apparatus
if (Keyboard.current[Key.NumpadMinus].wasPressedThisFrame) if (Keyboard.current[Key.NumpadMinus].wasPressedThisFrame)
{ {
@@ -67,32 +93,8 @@ public class LeverPatch
HUDManager.Instance.DisplayTip("Debug", "Teleported back to Ship!"); HUDManager.Instance.DisplayTip("Debug", "Teleported back to Ship!");
} }
} }
}
// ==========================================
// END QUICK DEBUG MACROS
// ==========================================
// Checking if its actually been pulled.
bool isApparatusPulled = true;
foreach (LungProp apparatus in allApparatuses)
{
// if any of the Lungs are NOT in the ship, that means theres still 1 (or more) in the facility.
if (!apparatus.isInShipRoom)
{
isApparatusPulled = false;
break;
}
}
if (!isApparatusPulled)
{
__instance.triggerScript.hoverTip = "Pull lever : [Start Ship]\n<color=#FF0000>WARNING: Launching without Apparatus in the Ship!</color>";
}
else
{
__instance.triggerScript.hoverTip = "Pull lever : [Start Ship]";
}
}
} }
// ==========================================
// END QUICK DEBUG MACROS
// ==========================================
*/