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,6 +25,32 @@ public class LeverPatch
LungProp[] allApparatuses = Object.FindObjectsOfType<LungProp>(); LungProp[] allApparatuses = Object.FindObjectsOfType<LungProp>();
// 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]";
}
}
}
/*
// ========================================== // ==========================================
// QUICK DEBUG MACROS // QUICK DEBUG MACROS
// ========================================== // ==========================================
@@ -71,28 +97,4 @@ public class LeverPatch
// ========================================== // ==========================================
// END QUICK DEBUG MACROS // 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]";
}
}
}