From db428e5b0d1086903f2763c1a9383686394f7d30 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 4 Mar 2023 22:39:54 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20GetNationInfo=EC=97=90=20=EA=B5=AD?= =?UTF-8?q?=EB=B0=A9=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/API/Nation/GetNationInfo.php | 6 +++++- hwe/ts/defs/API/Nation.ts | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/API/Nation/GetNationInfo.php b/hwe/sammo/API/Nation/GetNationInfo.php index fe0c2fd0..8f836f05 100644 --- a/hwe/sammo/API/Nation/GetNationInfo.php +++ b/hwe/sammo/API/Nation/GetNationInfo.php @@ -94,11 +94,15 @@ class GetNationInfo extends \sammo\BaseAPI $troopName[$troopID] = $tName; } - return [ + $result = [ 'result' => true, + 'isFull' => $isFull, 'nation' => $nation, 'impossibleStrategicCommandLists' => $impossibleStrategicCommandLists, + 'nationNotice' => $nationStor->nationNotice, 'troops' => $troopName, ]; + + return $result; } } diff --git a/hwe/ts/defs/API/Nation.ts b/hwe/ts/defs/API/Nation.ts index 85b26c67..c2124ff4 100644 --- a/hwe/ts/defs/API/Nation.ts +++ b/hwe/ts/defs/API/Nation.ts @@ -156,6 +156,8 @@ export type NationInfoResponse = }) | (ValidResponse & { nation: NationItem; + isFull: true, impossibleStrategicCommandLists: [string, number][]; + nationNotice: string, troops: Record; });