mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-13 11:40:38 +02:00
Minor code simplifaction
This commit is contained in:
parent
c6eac55210
commit
2823bf5848
@ -67,11 +67,6 @@ TownRewardableBuildingInstance::TownRewardableBuildingInstance(IGameCallback *cb
|
||||
|
||||
TownRewardableBuildingInstance::TownRewardableBuildingInstance(CGTownInstance * town, const BuildingID & index, vstd::RNG & rand)
|
||||
: TownBuildingInstance(town, index)
|
||||
{
|
||||
initObj(rand);
|
||||
}
|
||||
|
||||
void TownRewardableBuildingInstance::initObj(vstd::RNG & rand)
|
||||
{
|
||||
assert(town && town->getTown());
|
||||
configuration = generateConfiguration(rand);
|
||||
|
@ -81,8 +81,6 @@ public:
|
||||
/// gives second part of reward after hero level-ups for proper granting of spells/mana
|
||||
void heroLevelUpDone(const CGHeroInstance *hero) const override;
|
||||
|
||||
void initObj(vstd::RNG & rand) override;
|
||||
|
||||
/// applies player selection of reward
|
||||
void blockingDialogAnswered(const CGHeroInstance *hero, int32_t answer) const override;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user