Home
last modified time | relevance | path

Searched refs:ressourceToDistributeB (Results 1 – 1 of 1) sorted by relevance

/dports/games/maxr/maxr-0.2.9/src/game/data/base/
H A Dbase.cpp242 int ressourceToDistributeB; in calcMaxAllowedProd() local
253 ressourceToDistributeB = GoldProd; in calcMaxAllowedProd()
261 ressourceToDistributeB = MetalProd; in calcMaxAllowedProd()
269 ressourceToDistributeB = MetalProd; in calcMaxAllowedProd()
297 if (amount > 0) ressourceToDistributeB -= amount; in calcMaxAllowedProd()
305 ressourceToDistributeB = std::max (ressourceToDistributeB, 0); in calcMaxAllowedProd()
323 if (ressourceToDistributeB > 0) in calcMaxAllowedProd()
325 const int value = min (freeB, ressourceToDistributeB); in calcMaxAllowedProd()
327 ressourceToDistributeB -= value; in calcMaxAllowedProd()
338 maxAllowedProd -= ressourceToDistributeB + ressourceToDistributeC; in calcMaxAllowedProd()