diff --git a/android/assets/jsons/translations/template.properties b/android/assets/jsons/translations/template.properties index e1d02fc680..db9679e16f 100644 --- a/android/assets/jsons/translations/template.properties +++ b/android/assets/jsons/translations/template.properties @@ -1592,6 +1592,7 @@ Domain: [param] = Toggle UI (World Screen only) = Overrides yields from underlying terrain = No yields = +Mod: [modname] = # Policies diff --git a/core/src/com/unciv/ui/screens/civilopediascreen/ICivilopediaText.kt b/core/src/com/unciv/ui/screens/civilopediascreen/ICivilopediaText.kt index 1ed8e632aa..a854c8016a 100644 --- a/core/src/com/unciv/ui/screens/civilopediascreen/ICivilopediaText.kt +++ b/core/src/com/unciv/ui/screens/civilopediascreen/ICivilopediaText.kt @@ -2,6 +2,7 @@ package com.unciv.ui.screens.civilopediascreen import com.badlogic.gdx.scenes.scene2d.ui.Table import com.unciv.UncivGame +import com.unciv.models.ruleset.IRulesetObject import com.unciv.models.ruleset.Ruleset import com.unciv.models.stats.INamed @@ -82,6 +83,10 @@ interface ICivilopediaText { if (outerNotEmpty) yield(FormattedLine()) yieldAll(getCivilopediaTextLines(ruleset)) } + if (this@ICivilopediaText is IRulesetObject && ruleset.mods.size > 1 && originRuleset.isNotEmpty()) { + yield(FormattedLine()) + yield(FormattedLine("Mod: [$originRuleset]", starred = true, color = "#daa520")) + } } return SimpleCivilopediaText(newLines.toList()) }