Skip to content

Commit

Permalink
GOTTA, SWEEP SWEEP SWEEP!
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Jun 5, 2024
1 parent 458b8e7 commit 5c2001b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions CvGameCoreDLL_Expansion2/CvBuilderTaskingAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void CvBuilderTaskingAI::Init(CvPlayer* pPlayer)

// special case to evaluate plots adjacent to city
m_eUniqueCityAdjacentImprovement = NO_IMPROVEMENT;
m_eUniqueCostalImprovement = NO_IMPROVEMENT;
m_eUniqueCoastalImprovement = NO_IMPROVEMENT;
m_eUniqueHillImprovement = NO_IMPROVEMENT;

CivilizationTypes eCiv = m_pPlayer->getCivilizationType();
Expand Down Expand Up @@ -96,7 +96,7 @@ void CvBuilderTaskingAI::Init(CvPlayer* pPlayer)
}
if (pkImprovementInfo->IsCoastal())
{
m_eUniqueCostalImprovement = eImprovement;
m_eUniqueCoastalImprovement = eImprovement;
}
if (pkImprovementInfo->IsHillsMakesValid())
{
Expand All @@ -120,7 +120,7 @@ void CvBuilderTaskingAI::Uninit(void)
for (int i = 0; i < NUM_FEATURE_TYPES; i++)
m_aeUniqueFeatureImprovement[i] = NO_IMPROVEMENT;
m_eUniqueCityAdjacentImprovement = NO_IMPROVEMENT;
m_eUniqueCostalImprovement = NO_IMPROVEMENT;
m_eUniqueCoastalImprovement = NO_IMPROVEMENT;
m_eUniqueHillImprovement = NO_IMPROVEMENT;
}

Expand All @@ -133,7 +133,7 @@ void CvBuilderTaskingAI::Serialize(BuilderTaskingAI& builderTaskingAI, Visitor&
visitor(builderTaskingAI.m_canalWantedPlots);
visitor(builderTaskingAI.m_aeUniqueFeatureImprovement);
visitor(builderTaskingAI.m_eUniqueCityAdjacentImprovement);
visitor(builderTaskingAI.m_eUniqueCostalImprovement);
visitor(builderTaskingAI.m_eUniqueCoastalImprovement);
visitor(builderTaskingAI.m_eUniqueHillImprovement);
}

Expand Down Expand Up @@ -1026,9 +1026,9 @@ ImprovementTypes CvBuilderTaskingAI::SavePlotForUniqueImprovement(CvPlot* pPlot)
{
return m_eUniqueCityAdjacentImprovement;
}
else if (m_eUniqueCostalImprovement != NO_IMPROVEMENT && pPlot->isCoastalLand() && pPlot->canHaveImprovement(m_eUniqueCostalImprovement, m_pPlayer->GetID(), false, true))
else if (m_eUniqueCoastalImprovement != NO_IMPROVEMENT && pPlot->isCoastalLand() && pPlot->canHaveImprovement(m_eUniqueCoastalImprovement, m_pPlayer->GetID(), false, true))
{
return m_eUniqueCostalImprovement;
return m_eUniqueCoastalImprovement;
}
else if (m_eUniqueHillImprovement != NO_IMPROVEMENT && pPlot->getPlotType() == PLOT_HILLS && pPlot->canHaveImprovement(m_eUniqueHillImprovement, m_pPlayer->GetID(), false, true))
{
Expand Down
2 changes: 1 addition & 1 deletion Vox Populi Installer Files/VPUI Text/VPUI_tips_en_us.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<Text>Highlight Building Bonuses</Text>
</Replace>
<Replace Tag="TXT_KEY_EUI_HIGHLIGHT_BUILDING_BONUSES_BODY">
<Text>Highlight plots that would be buffed by a building when hovering over it in the city view production menu.[NEWLINE][COLOR_NEGATIVE_TEXT](Requires reload to take effect and may cause crashes!)[ENDCOLOR]</Text>
<Text>Highlight plots that would be buffed by a building when hovering over it in the city view production menu.[NEWLINE][COLOR_NEGATIVE_TEXT](Requires reload to take effect. May cause crashes for some players when hovering over buildings in the City Screen.)[ENDCOLOR]</Text>
</Replace>
<Replace Tag="TXT_KEY_EUI_SEPARATE_GP_RELIGIOUS_DISPLAY">
<Text>Separate Great Person and Religious Units</Text>
Expand Down

0 comments on commit 5c2001b

Please sign in to comment.