'type' => 3,
'required' => true,
'choices' => $choices,
+ ], [
+ 'name' => 'race',
+ 'description' => 'Generate race ROM, seed will be hidden',
+ 'description_localizations' => [
+ 'de' => 'Race ROM generieren, Seed wird versteckt.',
+ ],
+ 'type' => 5,
+ 'required' => false,
]],
]],
]);
->acknowledgeWithResponse()
->done(function() use($discord, $interaction) {
$presetName = $interaction->data->options['preset']->options['preset']->value;
+ $race = isset($interaction->data->options['preset']->options['race'])
+ ? $interaction->data->options['preset']->options['race']->value : false;
$message = MessageBuilder::new();
if (isset(static::$presets[$presetName])) {
$preset = static::$presets[$presetName];
- $seed = AosSeed::generateSurge($presetName, $preset['settings']);
+ $seed = AosSeed::generateSurge($presetName, $preset['settings'], $race);
$embed = new Embed($discord, [
'fields' => [
$seed = AosSeed::where('hash', '=', $hash)->firstOrFail();
if ($seed->race) {
- $seed->hide('seed');
+ $seed->makeHidden('seed');
}
if ($seed->mystery) {
- $seed->hide('settings');
+ $seed->makeHidden('settings');
}
return $seed->toJson();
generators: {
surge: 'Dieser Seed wurde mit dem Randomizer von fusecv auf aosrando.surge.sh generiert',
},
- mystery: 'Mystery',
+ mystery: 'Mystery ROM, Einstellungen versteckt',
noMystery: 'Kein Mystery',
noRace: 'Kein Race',
patch: 'ROM patchen',
Tournament2021: 'Turnier 2021',
Tournament2022: 'Turnier 2022',
},
- race: 'Race',
+ race: 'Race ROM, Seed versteckt',
seed: 'Seed',
status: 'Status',
statuses: {
generators: {
surge: 'This seed has been generated with fusecv\'s randomizer on aosrando.surge.sh.',
},
- mystery: 'Mystery',
+ mystery: 'Mystery ROM, settings hidden',
noMystery: 'No mystery',
noRace: 'No race',
patch: 'Patch ROM',
Tournament2021: 'Tournament 2021',
Tournament2022: 'Tournament 2022',
},
- race: 'Race',
+ race: 'Race ROM, seed hidden',
seed: 'Seed',
status: 'Status',
statuses: {