From 10ce6e6e71f50908afa109442d6d9faacbd79738 Mon Sep 17 00:00:00 2001 From: Patryk26g Date: Sat, 7 Dec 2024 10:13:41 +0100 Subject: [PATCH] Fix --- src/microbe_stage/systems/MicrobeAISystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {