mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
FactionMember: move code around
This commit is contained in:
@@ -69,6 +69,16 @@ si32 CHeroWithMaybePickedArtifact::manaLimit() const
|
||||
return si32(getPrimSkillLevel(PrimarySkill::KNOWLEDGE) * (valOfBonuses(Bonus::MANA_PER_KNOWLEDGE)));
|
||||
}
|
||||
|
||||
const IBonusBearer * CHeroWithMaybePickedArtifact::getBonusBearer() const
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
FactionID CHeroWithMaybePickedArtifact::getFaction() const
|
||||
{
|
||||
return hero->getFaction();
|
||||
}
|
||||
|
||||
CHeroWithMaybePickedArtifact::CHeroWithMaybePickedArtifact(CWindowWithArtifacts * Cww, const CGHeroInstance * Hero)
|
||||
: hero(Hero), cww(Cww)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user