mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 04:43:05 -04:00
Fixed the internal name & parameter of a unique (#6577)
This commit is contained in:
parent
34664e6071
commit
0a5fc3cf33
@ -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])
|
||||
}
|
||||
|
@ -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?
|
||||
|
@ -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]")
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user