mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 11:34:54 -04:00
minor corrections
This commit is contained in:
parent
79be14e291
commit
6f868952bb
@ -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]
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user