1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Allow guards not stronger than 1/3 max value next to roads

This commit is contained in:
Tomasz Zieliński
2024-05-01 10:24:21 +02:00
parent 67447acd0e
commit 7f3cf607a7
3 changed files with 27 additions and 8 deletions

View File

@@ -89,6 +89,8 @@ public:
bool isGuarded() const;
int3 getGuardPos() const;
void setGuardedIfMonster(const Instance & object);
void setValue(size_t value);
size_t getValue() const;
void finalize(RmgMap & map, CRandomGenerator &);
void clearCachedArea() const;
@@ -107,6 +109,7 @@ private:
mutable std::list<Object::Instance*> cachedInstanceList;
mutable std::list<const Object::Instance*> cachedInstanceConstList;
bool guarded;
size_t value;
};
}