diff --git a/endpoints/npc/npc.php b/endpoints/npc/npc.php index ba489abc..b7faf170 100644 --- a/endpoints/npc/npc.php +++ b/endpoints/npc/npc.php @@ -832,7 +832,7 @@ class NpcBaseResponse extends TemplateResponse implements ICache $spill[0][1] = $set[1][1] / 2; $spillover[$factions->getField('cat')] = $spill; - $set[6] = $factions->getField('cat'); // set spillover + $set[5] = $factions->getField('cat'); // set spillover } $result[] = $set; @@ -872,7 +872,7 @@ class NpcBaseResponse extends TemplateResponse implements ICache foreach ($reputation as $i => [, $data]) { - foreach ($data as [$factionId, , , , , , $spillover]) + foreach ($data as [$factionId, , , , , $spillover]) { if (!$spillover) continue; diff --git a/template/pages/npc.tpl.php b/template/pages/npc.tpl.php index a6dfeac1..ba68c727 100644 --- a/template/pages/npc.tpl.php +++ b/template/pages/npc.tpl.php @@ -70,7 +70,7 @@ if ($this->reputation): ?>

reputation as [$mode, $data]): if (count($this->reputation) > 1):