]> git.localhorst.tv Git - blobs.git/blobdiff - src/creature/goal.cpp
fix that pesky suffocation problem
[blobs.git] / src / creature / goal.cpp
index 61ecb3778a5b874c9b61e4e6fd93b2d107bdf941..bcb1682be1bca9514d81a2cbb3fdf3f985fa84f1 100644 (file)
@@ -40,7 +40,7 @@ void BlobBackgroundTask::Tick(double dt) {
                // TODO: derive breathing ability
                int gas = Assets().data.resources["air"].id;
                // TODO: check if in compatible atmosphere
-               double amount = GetCreature().GetStats().Breath().gain * -(1.5 + 0.5 * GetCreature().ExhaustionFactor());
+               double amount = GetCreature().GetStats().Breath().gain * -(1.0 + GetCreature().ExhaustionFactor());
                GetCreature().GetStats().Breath().Add(amount * dt);
                // maintain ~1% gas composition
                double gas_amount = GetCreature().GetComposition().Get(gas);