diff --git a/src/stores/shipStore.js b/src/stores/shipStore.js index 6c418046..ada44a08 100644 --- a/src/stores/shipStore.js +++ b/src/stores/shipStore.js @@ -98,6 +98,20 @@ function isAnyEquipmentActive(ship) { // ===================== const TIMEOUT_CHECK_INTERVAL_MS = 5000; // 5초 +/** + * 초기 선박 종류별 카운트 + */ +const initialKindCounts = { + [SIGNAL_KIND_CODE_FISHING]: 0, + [SIGNAL_KIND_CODE_KCGV]: 0, + [SIGNAL_KIND_CODE_PASSENGER]: 0, + [SIGNAL_KIND_CODE_CARGO]: 0, + [SIGNAL_KIND_CODE_TANKER]: 0, + [SIGNAL_KIND_CODE_GOV]: 0, + [SIGNAL_KIND_CODE_NORMAL]: 0, + [SIGNAL_KIND_CODE_BUOY]: 0, +}; + // ===================== // Incremental 카운트 레지스트리 (스토어 외부) // ===================== @@ -239,20 +253,6 @@ function fullRecount(features, darkSignalIds, isIntegrate, kindVisibility, sourc recalcTotal(); } -/** - * 초기 선박 종류별 카운트 - */ -const initialKindCounts = { - [SIGNAL_KIND_CODE_FISHING]: 0, - [SIGNAL_KIND_CODE_KCGV]: 0, - [SIGNAL_KIND_CODE_PASSENGER]: 0, - [SIGNAL_KIND_CODE_CARGO]: 0, - [SIGNAL_KIND_CODE_TANKER]: 0, - [SIGNAL_KIND_CODE_GOV]: 0, - [SIGNAL_KIND_CODE_NORMAL]: 0, - [SIGNAL_KIND_CODE_BUOY]: 0, -}; - /** * 초기 선박 종류별 표시 설정 */