Skip to content

Commit

Permalink
minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
yairm210 committed Jun 17, 2024
1 parent 79be14e commit 6f86895
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,6 @@ object CivilianUnitAutomation {
return
}

// This has to come after the individual abilities for the great people that can also place
// instant improvements (e.g. great scientist).
if (unit.hasUnique(UniqueType.ConstructImprovementInstantly)) {
// catch great prophet for civs who can't found/enhance/spread religion
// includes great people plus moddable units
val improvementCanBePlacedEventually =
SpecificUnitAutomation.automateImprovementPlacer(unit)
}

if (unit.hasUnique(UniqueType.GainFreeBuildings)) {
val unique = unit.getMatchingUniques(UniqueType.GainFreeBuildings).first()
val buildingName = unique.params[0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class PolicyManager : IsPartOfGameInfoSerialization {

for (policy in policiesToRemove) {
policyCostInput--
policyMap.put(policy, getPolicyCultureCost(policyCostInput))
policyMap[policy] = (getPolicyCultureCost(policyCostInput) * refundPercentage/100f).roundToInt()
}

return policyMap.toMap()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fun IHasUniques.uniquesToCivilopediaTextLines(
// (the other constructor guesses the first object by name in the Unique parameters).
yield(
if (colorConsumesResources && unique.type == UniqueType.ConsumesResources)
FormattedLine(unique.text, link = "Resources/${unique.params[1]}", color = "#F42")
FormattedLine(unique.getDisplayText(), link = "Resources/${unique.params[1]}", color = "#F42")
else FormattedLine(unique)
)
}
Expand Down

0 comments on commit 6f86895

Please sign in to comment.