mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-05 15:59:50 +07:00
Added mod check for unit promotions
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user