mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Merge pull request #1700 from rilian-la-te/resource-array
Modernize resourceSet.
This commit is contained in:
@@ -194,7 +194,7 @@ public:
|
||||
|
||||
bool isGood () const;
|
||||
bool isEvil () const;
|
||||
si32 maxAmount(const std::vector<si32> &res) const; //how many creatures can be bought
|
||||
si32 maxAmount(const TResources &res) const; //how many creatures can be bought
|
||||
static CCreature::CreatureQuantityId getQuantityID(const int & quantity);
|
||||
static std::string getQuantityRangeStringForId(const CCreature::CreatureQuantityId & quantityId);
|
||||
static int estimateCreatureCount(ui32 countID); //reverse version of above function, returns middle of range
|
||||
|
||||
Reference in New Issue
Block a user