AI Command Lab // Flight Simulator
8B: The Holding Pattern
Initial AI Output (Fragile)
void DepleteMana() {
// FRAGILE CODE
// Mana is never subtracted. Unity will freeze.
while (mana > 0) {
Debug.Log("Draining...");
}
}
Initial AI Prompt
"Ask the AI to deplete mana until empty."
Pilot Comm Link
Mission Objective: A skilled Mechanic directs the AI to decrement the variable.
Optimized Protocol
void DepleteMana() {
while (mana > 0) {
Debug.Log("Draining...");
mana--; // AUDIT PASS: Fuel is consumed.
}
}