diff --git a/hwe/sammo/API/General/GetFrontInfo.php b/hwe/sammo/API/General/GetFrontInfo.php index 9b2ae5fe..207c881d 100644 --- a/hwe/sammo/API/General/GetFrontInfo.php +++ b/hwe/sammo/API/General/GetFrontInfo.php @@ -66,6 +66,7 @@ class GetFrontInfo extends \sammo\BaseAPI $year, $month, $startYear, $generalCntLimit, $apiLimit, + $serverCnt, ] = $gameStor->getValuesAsArray([ 'scenario_text', 'extended_general', 'fiction', 'npcmode', 'join_mode', 'autorun_user', 'turnterm', 'turntime', @@ -74,6 +75,7 @@ class GetFrontInfo extends \sammo\BaseAPI 'year', 'month', 'startyear', 'maxgeneral', 'conlimit', + 'server_cnt', ]); $lastVote = null; @@ -122,6 +124,7 @@ class GetFrontInfo extends \sammo\BaseAPI 'tournamentState' => $tournamentState, 'genCount' => $globalGenCount, 'generalCntLimit' => $generalCntLimit, + 'serverCnt' => $serverCnt, 'lastVote' => $lastVote === null ? null : $lastVote->toArray(), ]; } diff --git a/hwe/ts/defs/API/Global.ts b/hwe/ts/defs/API/Global.ts index 33674e9f..8e934dc4 100644 --- a/hwe/ts/defs/API/Global.ts +++ b/hwe/ts/defs/API/Global.ts @@ -133,6 +133,7 @@ export type GetFrontInfoResponse = { tournamentState: string; genCount: number; generalCntLimit: number; + serverCnt: number; lastVote: VoteInfo | null; }; general: GeneralListItemP1 & {