mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Support for loading custom bonuses, slightly less hardcoded Skeleton
Transformer
This commit is contained in:
@@ -36,6 +36,7 @@ private:
|
||||
std::map<int, std::string> valueDescriptions;
|
||||
std::string identifier;
|
||||
|
||||
bool creatureNature;
|
||||
bool hidden;
|
||||
};
|
||||
|
||||
@@ -56,6 +57,8 @@ public:
|
||||
BonusType stringToBonus(const std::string & name) const;
|
||||
const std::string bonusToString(BonusType bonus) const;
|
||||
|
||||
bool isCreatureNatureBonus(BonusType bonus) const;
|
||||
|
||||
std::vector<BonusType> getAllObjets() const;
|
||||
private:
|
||||
void loadItem(const JsonNode & source, CBonusType & dest, const std::string & name) const;
|
||||
|
||||
Reference in New Issue
Block a user