[WebHost] weighted-settings: Include new option types when creating the default settings
This commit is contained in:
parent
01d6735803
commit
684bb736bc
|
@ -85,6 +85,13 @@ const createDefaultSettings = (settingData) => {
|
||||||
newSettings[game][gameSetting]['random-low'] = 0;
|
newSettings[game][gameSetting]['random-low'] = 0;
|
||||||
newSettings[game][gameSetting]['random-high'] = 0;
|
newSettings[game][gameSetting]['random-high'] = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'items-list':
|
||||||
|
case 'locations-list':
|
||||||
|
case 'custom-list':
|
||||||
|
newSettings[game][gameSetting] = [];
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
console.error(`Unknown setting type for ${game} setting ${gameSetting}: ${setting.type}`);
|
console.error(`Unknown setting type for ${game} setting ${gameSetting}: ${setting.type}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue