1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

code review (first batch)

This commit is contained in:
Laserlicht
2025-04-10 21:04:24 +02:00
parent 42673c1bab
commit 5b74f7f19e
12 changed files with 59 additions and 52 deletions

View File

@@ -102,10 +102,13 @@ public:
const HeroType * toEntity(const Services * services) const;
static const HeroTypeID NONE;
static const HeroTypeID RANDOM;
static const HeroTypeID GEM; // aka Gem, Sorceress in campaign
static const HeroTypeID SOLMYR; // aka Young Yog in campaigns
static const HeroTypeID STRONGEST;
static const HeroTypeID GENERATED;
static const HeroTypeID RANDOM;
bool isValid() const
{
return getNum() >= 0;
@@ -1043,6 +1046,8 @@ public:
COUNT,
WOOD_AND_ORE = 127, // special case for town bonus resource
COMMON = 0xFD, // campaign bonus
RARE = 0xFE, // campaign bonus
NONE = -1
};
};