mirror of
https://github.com/yairm210/Unciv.git
synced 2025-08-01 07:39:20 +07:00
Notification log fix (#8509)
* Fix ruin notification and broken conditional check * Translate idle production description
This commit is contained in:

committed by
GitHub

parent
913cb3cf00
commit
c3da760c3b
@ -49,7 +49,7 @@ class RuinsManager : IsPartOfGameInfoSerialization {
|
||||
&& (civInfo.civConstructions.boughtItemsWithIncreasingPrice[civInfo.religionManager.getGreatProphetEquivalent()] ?: 0) > 0
|
||||
) continue
|
||||
|
||||
if (possibleReward.getMatchingUniques(UniqueType.OnlyAvailableWhen)
|
||||
if (possibleReward.getMatchingUniques(UniqueType.OnlyAvailableWhen, StateForConditionals.IgnoreConditionals)
|
||||
.any { !it.conditionalsApply(StateForConditionals(civInfo, unit=triggeringUnit, tile = triggeringUnit.getTile()) ) })
|
||||
continue
|
||||
|
||||
|
@ -82,7 +82,7 @@ class ConstructionInfoTable(val cityScreen: CityScreen): Table() {
|
||||
is BaseUnit -> construction.getDescription(city)
|
||||
is Building -> construction.getDescription(city, true)
|
||||
is PerpetualStatConversion -> construction.description.replace("[rate]", "[${construction.getConversionRate(city)}]").tr()
|
||||
is PerpetualConstruction -> construction.description
|
||||
is PerpetualConstruction -> construction.description.tr()
|
||||
else -> "" // Should never happen
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,7 @@ class NotificationsOverviewTable(
|
||||
for (notification in categoryNotifications) {
|
||||
val notificationTable = Table(BaseScreen.skin)
|
||||
|
||||
val labelWidth = maxEntryWidth * notification.icons.size - 10f
|
||||
val labelWidth = maxEntryWidth - iconSize * notification.icons.size - 10f
|
||||
val label = WrappableLabel(notification.text, labelWidth, Color.BLACK, 20)
|
||||
|
||||
notificationTable.add(label)
|
||||
|
Reference in New Issue
Block a user