1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

- Handle new configurable banks

- Handle "all" object banned option
This commit is contained in:
Tomasz Zieliński
2024-09-21 13:36:28 +02:00
parent 54e47c20b0
commit ec603f46ae
4 changed files with 46 additions and 29 deletions

View File

@@ -525,6 +525,11 @@ bool Rewardable::Info::givesBonuses() const
return testForKey(parameters, "bonuses");
}
bool Rewardable::Info::hasGuards() const
{
return testForKey(parameters, "guards");
}
const JsonNode & Rewardable::Info::getParameters() const
{
return parameters;