]> git.localhorst.tv Git - blobs.git/blobdiff - src/creature/Need.hpp
remove outdated TODOs
[blobs.git] / src / creature / Need.hpp
index 2fd4898f3e40aa927b4f6fa9c9ac2c5770694059..295b00f7161448490a06088d7b2ba6fd6075e6a2 100644 (file)
@@ -22,10 +22,14 @@ struct Need {
        double inconvenient = 0.0;
        // the value at which this need starts to hurt
        double critical = 0.0;
+       // factor of the intake that may stay in the body
+       double growth = 0.0;
 
        virtual ~Need() noexcept;
 
        void Tick(double dt) noexcept;
+       void Increase(double) noexcept;
+       void Decrease(double) noexcept;
 
        bool IsSatisfied() const noexcept { return value < inconvenient; }
        bool IsInconvenient() const noexcept { return value >= inconvenient && value < critical; }