diff --git a/core/src/com/unciv/logic/civilization/TechManager.kt b/core/src/com/unciv/logic/civilization/TechManager.kt index 0997f7cb47..05fd0dc20c 100644 --- a/core/src/com/unciv/logic/civilization/TechManager.kt +++ b/core/src/com/unciv/logic/civilization/TechManager.kt @@ -324,7 +324,7 @@ class TechManager { } } - for (unique in civInfo.getMatchingUniques(UniqueType.RecieveFreeUnitWhenDiscoveringTech)) { + for (unique in civInfo.getMatchingUniques(UniqueType.ReceiveFreeUnitWhenDiscoveringTech)) { if (unique.params[1] != techName) continue civInfo.addUnit(unique.params[0]) } diff --git a/core/src/com/unciv/models/ruleset/unique/UniqueType.kt b/core/src/com/unciv/models/ruleset/unique/UniqueType.kt index bb25bdb3dd..523175206e 100644 --- a/core/src/com/unciv/models/ruleset/unique/UniqueType.kt +++ b/core/src/com/unciv/models/ruleset/unique/UniqueType.kt @@ -254,8 +254,7 @@ enum class UniqueType(val text: String, vararg targets: UniqueTarget, val flags: // Acts as a trigger - this should be generalized somehow but the current setup does not allow this // It would currently mean cycling through EVERY unique type to find ones with a specific conditional... - @Suppress("SpellCheckingInspection") // Not worth fixing - RecieveFreeUnitWhenDiscoveringTech("Receive free [baseUnitFilter] when you discover [tech]", UniqueTarget.Global), + ReceiveFreeUnitWhenDiscoveringTech("Receive free [unit] when you discover [tech]", UniqueTarget.Global), EnablesOpenBorders("Enables Open Borders agreements", UniqueTarget.Global), // Should the 'R' in 'Research agreements' be capitalized? diff --git a/desktop/src/com/unciv/app/desktop/UniqueDocsWriter.kt b/desktop/src/com/unciv/app/desktop/UniqueDocsWriter.kt index 824a955d29..03b6244199 100644 --- a/desktop/src/com/unciv/app/desktop/UniqueDocsWriter.kt +++ b/desktop/src/com/unciv/app/desktop/UniqueDocsWriter.kt @@ -21,6 +21,7 @@ class UniqueDocsWriter { .replace("[combatantFilter]", "[City]") .replace("[mapUnitFilter]", "[Wounded]") .replace("[baseUnitFilter]", "[Melee]") + .replace("[unit]","[Musketman]") .replace("[great person]", "[Great Scientist]") .replace("[stats]", "[+1 Gold, +2 Production]") .replace("[stat]", "[Culture]") diff --git a/docs/Modders/uniques.md b/docs/Modders/uniques.md index cf3badae99..4fcdde3c5c 100644 --- a/docs/Modders/uniques.md +++ b/docs/Modders/uniques.md @@ -522,8 +522,8 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl Applicable to: Global -??? example "Receive free [baseUnitFilter] when you discover [tech]" - Example: "Receive free [Melee] when you discover [Agriculture]" +??? example "Receive free [unit] when you discover [tech]" + Example: "Receive free [Musketman] when you discover [Agriculture]" Applicable to: Global