mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Added mod check for unit promotions
This commit is contained in:
parent
b495398c0e
commit
cea8bdf12c
@ -242,6 +242,9 @@ class Ruleset {
|
||||
lines += "${unit.name} upgrades to unit ${unit.upgradesTo} which does not exist!"
|
||||
if (unit.replaces != null && !units.containsKey(unit.replaces!!))
|
||||
lines += "${unit.replaces} replaces ${unit.replaces} which does not exist!"
|
||||
for (promotion in unit.promotions)
|
||||
if (!unitPromotions.containsKey(promotion))
|
||||
lines += "${unit.replaces} contains promotion $promotion which does not exist!"
|
||||
}
|
||||
|
||||
for (building in buildings.values) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user