mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Split some map object files into smaller files. Reduced includes usage.
This commit is contained in:
@ -11,8 +11,25 @@
|
||||
#include "StdInc.h"
|
||||
#include "Reward.h"
|
||||
|
||||
#include "../mapObjects/CGHeroInstance.h"
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
Rewardable::Reward::Reward()
|
||||
: heroExperience(0)
|
||||
, heroLevel(0)
|
||||
, manaDiff(0)
|
||||
, manaPercentage(-1)
|
||||
, movePoints(0)
|
||||
, movePercentage(-1)
|
||||
, primary(4, 0)
|
||||
, removeObject(false)
|
||||
, spellCast(SpellID::NONE, SecSkillLevel::NONE)
|
||||
{
|
||||
}
|
||||
|
||||
Rewardable::Reward::~Reward() = default;
|
||||
|
||||
si32 Rewardable::Reward::calculateManaPoints(const CGHeroInstance * hero) const
|
||||
{
|
||||
si32 manaScaled = hero->mana;
|
||||
|
Reference in New Issue
Block a user