mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
the word 'default' is misleading since it's an overrider
This commit is contained in:
parent
e01ba625ba
commit
4e51c94fa4
@ -14,8 +14,8 @@ class ModOptions : IHasUniques {
|
||||
var unitsToRemove = HashSet<String>()
|
||||
var nationsToRemove = HashSet<String>()
|
||||
val constants = ModConstants()
|
||||
var defaultUnitset: String? = null
|
||||
var defaultTileset: String? = null
|
||||
var unitset: String? = null
|
||||
var tileset: String? = null
|
||||
//endregion
|
||||
|
||||
//region Metadata, automatic
|
||||
|
@ -150,8 +150,8 @@ object RulesetCache : HashMap<String, Ruleset>() {
|
||||
newRuleset.modOptions.uniques = ArrayList()
|
||||
newRuleset.modOptions.isBaseRuleset = true
|
||||
// Default tileset and unitset are according to base ruleset
|
||||
newRuleset.modOptions.defaultTileset = mod.modOptions.defaultTileset
|
||||
newRuleset.modOptions.defaultUnitset = mod.modOptions.defaultUnitset
|
||||
newRuleset.modOptions.tileset = mod.modOptions.tileset
|
||||
newRuleset.modOptions.unitset = mod.modOptions.unitset
|
||||
}
|
||||
newRuleset.add(mod)
|
||||
newRuleset.mods += mod.name
|
||||
|
@ -34,8 +34,8 @@ class TileSetStrings(
|
||||
) {
|
||||
|
||||
constructor(ruleset: Ruleset, settings: GameSettings) : this(
|
||||
ruleset.modOptions.defaultTileset ?: settings.tileSet,
|
||||
ruleset.modOptions.defaultUnitset ?: settings.unitSet
|
||||
ruleset.modOptions.tileset ?: settings.tileSet,
|
||||
ruleset.modOptions.unitset ?: settings.unitSet
|
||||
)
|
||||
|
||||
|
||||
|
@ -162,8 +162,8 @@ The file can have the following attributes, not including the values Unciv sets
|
||||
| unitsToRemove | List | empty | List of [Units](4-Unit-related-JSON-files.md#unitsjson) or [unitFilter](../../Unique-parameters.md#baseunitfilter) to remove (isBaseRuleset=false only) |
|
||||
| nationsToRemove | List | empty | List of [Nations](2-Civilization-related-JSON-files.md#nationsjson) or [nationFilter](../../Unique-parameters.md#nationfilter) to remove (isBaseRuleset=false only) |
|
||||
| constants | Object | empty | See [ModConstants](#modconstants) |
|
||||
| defaultTileset | String | empty | Only applicable for base rulesets |
|
||||
| defaultUnitset | String | empty | Only applicable for base rulesets |
|
||||
| tileset | String | empty | Only applicable for base rulesets |
|
||||
| unitset | String | empty | Only applicable for base rulesets |
|
||||
|
||||
The values normally set automatically from github metadata are:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user