minor corrections

This commit is contained in:
Yair Morgenstern 2024-06-17 23:45:55 +03:00
parent 79be14e291
commit 6f868952bb
3 changed files with 2 additions and 11 deletions

View File

@ -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]

View File

@ -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()

View File

@ -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)
)
}