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:
@@ -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
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user