mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-26 07:39:44 +07:00
Complex ruleset merge order (#2240)
* .gitignore: mods SaveFiles transients * Simple transposition prevents mod improvements from appearing below roads&removals should also move modded nations to the top in new game player picker
This commit is contained in:
@ -171,12 +171,12 @@ object RulesetCache :HashMap<String,Ruleset>(){
|
||||
|
||||
fun getComplexRuleset(mods:Collection<String>): Ruleset {
|
||||
val newRuleset = Ruleset()
|
||||
newRuleset.add(getBaseRuleset())
|
||||
for(mod in mods)
|
||||
if(containsKey(mod)) {
|
||||
newRuleset.add(this[mod]!!)
|
||||
newRuleset.mods+=mod
|
||||
}
|
||||
newRuleset.add(getBaseRuleset())
|
||||
return newRuleset
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user