1
0
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:
Ivan Savenko
2023-06-02 21:47:37 +03:00
parent b04b11b9d1
commit d6a357fd17
116 changed files with 1864 additions and 1593 deletions

View File

@ -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;