mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-13 11:40:38 +02:00
Rename constant
This commit is contained in:
parent
96420bfc05
commit
7996123dfa
@ -631,7 +631,7 @@ void CTownHandler::loadBuilding(CTown * town, const std::string & stringID, cons
|
||||
|
||||
if(source["type"].String() == "configurable" && ret->subId == BuildingSubID::NONE)
|
||||
{
|
||||
ret->subId = BuildingSubID::CONFIGURABLE_REWARD;
|
||||
ret->subId = BuildingSubID::CUSTOM_VISITING_REWARD;
|
||||
ret->rewardableObjectInfo.init(source);
|
||||
}
|
||||
}
|
||||
|
@ -582,7 +582,7 @@ namespace BuildingSubID
|
||||
LIGHTHOUSE,
|
||||
TREASURY,
|
||||
CUSTOM_VISITING_BONUS,
|
||||
CONFIGURABLE_REWARD
|
||||
CUSTOM_VISITING_REWARD
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -391,7 +391,7 @@ void CGTownInstance::addTownBonuses(CRandomGenerator & rand)
|
||||
if(kvp.second->IsWeekBonus())
|
||||
bonusingBuildings.push_back(new COPWBonus(kvp.second->bid, kvp.second->subId, this));
|
||||
|
||||
if(kvp.second->subId == BuildingSubID::CONFIGURABLE_REWARD)
|
||||
if(kvp.second->subId == BuildingSubID::CUSTOM_VISITING_REWARD)
|
||||
bonusingBuildings.push_back(new CTownRewardableBuilding(kvp.second->bid, kvp.second->subId, this, rand));
|
||||
}
|
||||
}
|
||||
@ -568,7 +568,7 @@ void CGTownInstance::newTurn(CRandomGenerator & rand) const
|
||||
}
|
||||
}
|
||||
|
||||
for(const auto * rewardableBuilding : getBonusingBuildings(BuildingSubID::CONFIGURABLE_REWARD))
|
||||
for(const auto * rewardableBuilding : getBonusingBuildings(BuildingSubID::CUSTOM_VISITING_REWARD))
|
||||
rewardableBuilding->newTurn(rand);
|
||||
}
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user