removed debug macro's
This commit is contained in:
@@ -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]";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user