From c342fcef3019175de448a34865f9178bb593376d Mon Sep 17 00:00:00 2001 From: Dominic Date: Sun, 11 Oct 2026 13:08:13 +0200 Subject: [PATCH] Use balance schema v2 in stats editor --- intern/statistik/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/statistik/index.php b/intern/statistik/index.php index 3baf4b3..af7b439 100644 --- a/intern/statistik/index.php +++ b/intern/statistik/index.php @@ -183,7 +183,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['balance_action'])) { $rpcBase = preg_replace('~/private_stats$~', '/set_game_balance', (string) ($config['nakama_rpc_url'] ?? '')); $towerForm = $_POST['towers'] ?? []; $enemyForm = $_POST['enemies'] ?? []; - $balance = ['schema' => 1, 'towers' => [], 'enemies' => []]; + $balance = ['schema' => 2, 'towers' => [], 'enemies' => []]; for ($i = 0; $i < 7; $i++) { $row = is_array($towerForm[$i] ?? null) ? $towerForm[$i] : []; $balance['towers'][] = ['cost' => $row['cost'] ?? '', 'damage' => $row['damage'] ?? '', 'range' => $row['range'] ?? '', 'cooldown' => $row['cooldown'] ?? '', 'targetClass' => $row['targetClass'] ?? '', 'bothScale' => $row['bothScale'] ?? ''];