diff --git a/hwe/ts/PartialReservedCommand.vue b/hwe/ts/PartialReservedCommand.vue index cf28ab14..5823b871 100644 --- a/hwe/ts/PartialReservedCommand.vue +++ b/hwe/ts/PartialReservedCommand.vue @@ -293,6 +293,8 @@ declare const staticValues: { }[], serverNow: string, serverNick: string, + mapName: string, + unitSet: string, } @@ -745,7 +747,7 @@ watch(isEditMode, newEditMode => { const emptyTurnObj: TurnObj = { action: '휴식', brief: '휴식', arg: {} }; -const storedActionsHelper = new StoredActionsHelper(staticValues.serverNick, 'general'); +const storedActionsHelper = new StoredActionsHelper(staticValues.serverNick, 'general', staticValues.mapName, staticValues.unitSet); const recentActions = storedActionsHelper.recentActions; const storedActions = storedActionsHelper.storedActions; diff --git a/hwe/ts/v_processing.ts b/hwe/ts/v_processing.ts index 4e48ab7f..ce31d859 100644 --- a/hwe/ts/v_processing.ts +++ b/hwe/ts/v_processing.ts @@ -16,6 +16,8 @@ import type { ReserveCommandResponse } from './defs'; declare const staticValues: { serverNick: string, turnList: number[], + mapName: string, + unitSet: string, }; const { turnList } = staticValues; @@ -35,7 +37,7 @@ async function submitCommand(isChiefTurn: bool arg, }); - const storedActionsHelper = new StoredActionsHelper(staticValues.serverNick, isChiefTurn?'nation':'general'); + const storedActionsHelper = new StoredActionsHelper(staticValues.serverNick, isChiefTurn?'nation':'general', staticValues.mapName, staticValues.unitSet); const response = await responseP; storedActionsHelper.pushRecentActions({ diff --git a/hwe/v_processing.php b/hwe/v_processing.php index cfe3db1c..3dd203ca 100644 --- a/hwe/v_processing.php +++ b/hwe/v_processing.php @@ -83,13 +83,15 @@ if (!$commandObj->hasPermissionToReserve()) { 'turnList' => $turnList, 'currentCity' => $general->getCityID(), 'currentNation' => $general->getNationID(), - 'entryInfo' => [$isChiefTurn?'Nation':'General', $commandType] + 'entryInfo' => [$isChiefTurn?'Nation':'General', $commandType], + 'mapName' => GameConst::$mapName, + 'unitSet' => GameConst::$unitSet, ], 'commandName' => $commandObj->getName(), 'turnList' => $turnList, 'currentCity' => $general->getCityID(), 'currentNation' => $general->getNationID(), - 'entryInfo' => [$isChiefTurn?'Nation':'General', $commandType] + 'entryInfo' => [$isChiefTurn?'Nation':'General', $commandType], ])?> exportJSVars(), false) ?>