feat,refac: GameUnitConstraint 개념 추가

- GameUnitDetail의 요구 기술, 지역, 도시, 연도를 GameUnitConstraint로 통합
- GameUnitConstraint는 조건 검사, 설명 제공
- 병종 정의를 GameUnitConstraint 이용 재정의
- test 함수에 General 객체 요구,
- test 함수의 ownCities에 단순 도시 외 도시 정보 추가
- 변경된 값에 맞게 호출 함수 변경
This commit is contained in:
2025-01-22 16:26:15 +00:00
parent 91e56644b4
commit 2869ba5c42
16 changed files with 1659 additions and 1563 deletions
+1 -4
View File
@@ -176,10 +176,7 @@ export type GameUnitType = {
magicCoef: number;
cost: number;
rice: number;
reqTech: number;
reqCities: CityID[] | null;
reqRegions: MapRegionID[] | null;
reqYear: number;
reqConstraints: Record<string, unknown>[];
attackCoef: Record<CrewTypeID | ArmTypeID, number> | null | [];
defenceCoef: Record<CrewTypeID | ArmTypeID, number> | null | [];
info: string | string[];