mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Change the name of default livery
This commit is contained in:
parent
99de17a858
commit
b5c7eaf36e
@ -577,7 +577,7 @@ export abstract class UnitSpawnMenu {
|
||||
|
||||
#setUnitLivery(liveryName: string) {
|
||||
var liveries = this.#unitDatabase.getByName(this.spawnOptions.name)?.liveries;
|
||||
if (liveryName === "Default") {
|
||||
if (liveryName === "Default Livery") {
|
||||
this.spawnOptions.liveryID = "";
|
||||
}
|
||||
else {
|
||||
@ -593,7 +593,7 @@ export abstract class UnitSpawnMenu {
|
||||
#setUnitLiveryOptions() {
|
||||
if (this.spawnOptions.name !== "" && this.spawnOptions.country !== "") {
|
||||
var liveries = this.#unitDatabase.getLiveryNamesByName(this.spawnOptions.name);
|
||||
var countryLiveries: string[] = ["Default"];
|
||||
var countryLiveries: string[] = ["Default Livery"];
|
||||
liveries.forEach((livery: any) => {
|
||||
var nationLiveryCodes = this.#countryCodes[this.spawnOptions.country].liveryCodes;
|
||||
if (livery.countries === "All" || livery.countries.some((country: string) => { return nationLiveryCodes.includes(country) }))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user