Fixed the internal name & parameter of a unique (#6577)

This commit is contained in:
Xander Lenstra 2022-04-20 16:02:31 +02:00 committed by GitHub
parent 34664e6071
commit 0a5fc3cf33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -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])
}

View File

@ -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?

View File

@ -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]")

View File

@ -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