From 8b381daf189473502507486ef813c04becf2cb13 Mon Sep 17 00:00:00 2001 From: yairm210 Date: Sat, 13 Sep 2025 22:49:32 +0300 Subject: [PATCH] Fix tests --- android/assets/jsons/translations/Maltese.properties | 6 +++--- core/src/com/unciv/models/Religion.kt | 1 + .../com/unciv/ui/screens/basescreen/TutorialController.kt | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/android/assets/jsons/translations/Maltese.properties b/android/assets/jsons/translations/Maltese.properties index 8e7d1b88c2..521b58ffb3 100644 --- a/android/assets/jsons/translations/Maltese.properties +++ b/android/assets/jsons/translations/Maltese.properties @@ -1552,9 +1552,9 @@ Your civilization stands above all others! The exploits of your people shall be You have been defeated. Your civilization has been overwhelmed by its many foes. But your people do not despair, for they know that one day you shall return - and lead them forward to victory! = One more turn...! = Turn ieħor...! Destroy [civName] = Eqred [civName] -Capture [cityName] = Ħu lil [civName] +Capture [cityName] = Ħu lil [cityName] Destroy ? * [civName] = Eqred ? * [civName] -Capture ? * [cityName] = Aqbad ? * [civName] +Capture ? * [cityName] = Aqbad ? * [cityName] Majority religion of ? * [civName] = Reliġjon prinċipali ta' ? * [civName] Our status = L-istatus tagħna Global status = Status Globali @@ -1717,7 +1717,7 @@ The possible rewards are: = Il-premji possibli huma: Eras = Etajiet Embarked strength: [amount]† = Saħħa waqt imbarkata: [amount]† Base unit buy cost: [amount]¤ = Prezz bażiku tal-unità [amount]¤ -Research agreement cost: [amount]¤ = Prezz tal-Ftehim tar-Riċerka +Research agreement cost: [amount]¤ = Speeds = Velocitajiet General speed modifier: [amount]%⏳ = Modifikatur tal-veloċità ġenerali: [amount]%⏳ Production cost modifier: [amount]%⚙ = Modifikatur tal-ispiża tal-produzzjoni: [amount]%⚙ diff --git a/core/src/com/unciv/models/Religion.kt b/core/src/com/unciv/models/Religion.kt index bcda3366e6..e88938598a 100644 --- a/core/src/com/unciv/models/Religion.kt +++ b/core/src/com/unciv/models/Religion.kt @@ -147,6 +147,7 @@ class Religion() : INamed, IsPartOfGameInfoSerialization { } } + @Readonly private fun unlockedBuildingsPurchasable(): List { return getAllBeliefsOrdered().flatMap { belief -> belief.getMatchingUniques(UniqueType.BuyBuildingsWithStat).map { it.params[0] } + diff --git a/core/src/com/unciv/ui/screens/basescreen/TutorialController.kt b/core/src/com/unciv/ui/screens/basescreen/TutorialController.kt index 24407879b2..c3ec273fd0 100644 --- a/core/src/com/unciv/ui/screens/basescreen/TutorialController.kt +++ b/core/src/com/unciv/ui/screens/basescreen/TutorialController.kt @@ -12,6 +12,7 @@ import com.unciv.ui.components.input.KeyCharAndCode import com.unciv.ui.images.ImageGetter import com.unciv.ui.popups.Popup import com.unciv.ui.screens.civilopediascreen.ICivilopediaText +import yairm210.purity.annotations.Readonly class TutorialController(screen: BaseScreen) { @@ -76,6 +77,7 @@ class TutorialController(screen: BaseScreen) { } } + @Readonly private fun getTutorial(tutorial: TutorialTrigger): List { val name = tutorial.value.replace('_', ' ').trimStart() return tutorials[name]?.steps ?: emptyList()