X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fresources.qh;h=81f4eb54a4a02979f071bbe5e3170f7f3c375f0c;hb=70ea43b4278e37fb741f01832c447de8eb707c3e;hp=a562292b40a5c5bcd7f00d779f647c2a3bb87357;hpb=7ff985ed6aa644a01d2520ec06603f32f9dd4074;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/resources.qh b/qcsrc/common/resources.qh index a562292b4..81f4eb54a 100644 --- a/qcsrc/common/resources.qh +++ b/qcsrc/common/resources.qh @@ -5,16 +5,20 @@ /// \author Lyberta /// \copyright GNU GPLv2 or any later version. +/// \brief Unconditional maximum amount of resources the entity can have. +const int RES_AMOUNT_HARD_LIMIT = 999; +const int RES_LIMIT_NONE = -1; + /// \brief Describes the available resource types. enum { - RESOURCE_NONE, ///< Indicates the lack of resource. Use with caution. - RESOURCE_HEALTH, ///< Health. - RESOURCE_ARMOR, ///< Armor. - RESOURCE_SHELLS, ///< Shells (used by shotgun). - RESOURCE_BULLETS, ///< Bullets (used by machinegun, rifle, HMG) - RESOURCE_ROCKETS, ///< Rockets (used by mortar, hagar, devastator, etc). - RESOURCE_CELLS, ///< Cells (used by electro, crylink, vortex, etc) - RESOURCE_PLASMA, ///< Plasma (unused). - RESOURCE_FUEL ///< Fuel (used by jetpack). + RES_NONE, ///< Indicates the lack of resource. Use with caution. + RES_HEALTH, ///< Health. + RES_ARMOR, ///< Armor. + RES_SHELLS, ///< Shells (used by shotgun). + RES_BULLETS, ///< Bullets (used by machinegun, rifle, HMG) + RES_ROCKETS, ///< Rockets (used by mortar, hagar, devastator, etc). + RES_CELLS, ///< Cells (used by electro, crylink, vortex, etc) + RES_PLASMA, ///< Plasma (unused). + RES_FUEL ///< Fuel (used by jetpack). };