1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

vcmi: remove estates bonus

Now it is handled by GENERATE_RESOURCE::GOLD.
This commit is contained in:
Konstantin
2023-02-18 21:08:27 +03:00
parent c64d05c419
commit 300a8a15ba
5 changed files with 6 additions and 9 deletions

View File

@@ -584,7 +584,6 @@ void CKingdomInterface::generateMinesList(const std::vector<const CGObjectInstan
std::vector<const CGHeroInstance*> heroes = LOCPLINT->cb->getHeroesInfo(true);
for(auto & heroe : heroes)
{
totalIncome += heroe->valOfBonuses(Selector::typeSubtype(Bonus::SECONDARY_SKILL_PREMY, SecondarySkill::ESTATES));
totalIncome += heroe->valOfBonuses(Selector::typeSubtype(Bonus::GENERATE_RESOURCE, Res::GOLD));
}

View File

@@ -86,11 +86,12 @@
"specialty" : {
"bonuses" : {
"estates" : {
"subtype" : "skill.estates",
"type" : "SECONDARY_SKILL_PREMY",
"subtype" : "resource.gold",
"type" : "GENERATE_RESOURCE",
"updater" : "TIMES_HERO_LEVEL",
"val" : 5,
"valueType" : "PERCENT_TO_BASE"
"valueType" : "PERCENT_TO_TARGET_TYPE",
"targetSourceType" : "SECONDARY_SKILL"
}
}
}

View File

@@ -373,8 +373,8 @@
"base" : {
"effects" : {
"main" : {
"subtype" : "skill.estates",
"type" : "SECONDARY_SKILL_PREMY",
"subtype" : "resource.gold",
"type" : "GENERATE_RESOURCE",
"valueType" : "BASE_NUMBER"
}
}

View File

@@ -2564,7 +2564,6 @@ struct statsHLP
//Heroes can produce gold as well - skill, specialty or arts
for(auto & h : ps->heroes)
{
totalIncome += h->valOfBonuses(Selector::typeSubtype(Bonus::SECONDARY_SKILL_PREMY, SecondarySkill::ESTATES));
totalIncome += h->valOfBonuses(Selector::typeSubtype(Bonus::GENERATE_RESOURCE, Res::GOLD));
if(!heroOrTown)

View File

@@ -1937,8 +1937,6 @@ void CGameHandler::newTurn()
if (!firstTurn) //not first day
{
n.res[elem.first][Res::GOLD] += h->valOfBonuses(Selector::typeSubtype(Bonus::SECONDARY_SKILL_PREMY, SecondarySkill::ESTATES)); //estates
for (int k = 0; k < GameConstants::RESOURCE_QUANTITY; k++)
{
n.res[elem.first][k] += h->valOfBonuses(Bonus::GENERATE_RESOURCE, k);