Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Patryk26g committed Dec 13, 2024
1 parent e698eea commit 10ce6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/microbe_stage/systems/MicrobeAISystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 10ce6e6

Please sign in to comment.