Added support for Big Run to Satori.
This commit is contained in:
parent
55672be6ca
commit
3432e7ccf3
1 changed files with 22 additions and 2 deletions
|
@ -494,9 +494,29 @@ if($typeId === SP_TYPE_SCHED) { // SCHEDULE SHIT
|
||||||
if($includeBigRun && !empty($data->coopGroupingSchedule->bigRunSchedules->nodes)) {
|
if($includeBigRun && !empty($data->coopGroupingSchedule->bigRunSchedules->nodes)) {
|
||||||
$schedule = [];
|
$schedule = [];
|
||||||
|
|
||||||
// i have no idea what the format of this is gonna be yet
|
|
||||||
// implement this when there's a big run again lol
|
|
||||||
$nodes = $data->coopGroupingSchedule->bigRunSchedules->nodes;
|
$nodes = $data->coopGroupingSchedule->bigRunSchedules->nodes;
|
||||||
|
foreach($nodes as $node) {
|
||||||
|
if(empty($node->setting))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
$schedule[] = $item = new stdClass;
|
||||||
|
splatoon3_schedule_gen($item, $node);
|
||||||
|
$item->variant = 'coop';
|
||||||
|
|
||||||
|
$item->stages = [
|
||||||
|
[
|
||||||
|
'name' => $node->setting->coopStage->name,
|
||||||
|
'image' => $node->setting->coopStage->image->url,
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
$item->weapons = [];
|
||||||
|
foreach($node->setting->weapons as $weapon)
|
||||||
|
$item->weapons[] = [
|
||||||
|
'name' => $localeInfo->weapons->{$weapon->__splatoon3ink_id}?->name ?? $weapon->name,
|
||||||
|
'image' => $weapon->image->url,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
if(!empty($schedule)) {
|
if(!empty($schedule)) {
|
||||||
$gameModes[] = [
|
$gameModes[] = [
|
||||||
|
|
Reference in a new issue