diff --git a/src/microbe_stage/systems/MicrobeAISystem.cs b/src/microbe_stage/systems/MicrobeAISystem.cs index ae5ab4dd35..301e8abfde 100644 --- a/src/microbe_stage/systems/MicrobeAISystem.cs +++ b/src/microbe_stage/systems/MicrobeAISystem.cs @@ -343,7 +343,7 @@ private void ChooseActions(in Entity entity, ref MicrobeAI ai, ref CompoundAbsor if (ai.ATPThreshold > MathUtils.EPSILON) { - if (atpLevel < atpLevel * ai.ATPThreshold) + if (atpLevel < compounds.GetCapacityForCompound(Compound.ATP) * ai.ATPThreshold) { if (cellHealth.CurrentHealth > 2 * Constants.ENGULF_NO_ATP_DAMAGE) {