런 루프 코어 (TODO E1+E2) — 연속 전투·카드 보상·덱 성장 #13
Reference in New Issue
Block a user
Delete Branch "feature/run-loop-core"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
요약
단일 전투를 연속 N전투 "런"으로 확장한다 — 런 상태(HP/골드/덱) 영속 + 승리 후 카드 1택 보상 +
다음 전투 연결 + N전투 후 "런 클리어". 로그라이크 메타(E)의 첫 하위 프로젝트(E1 런 상태 + E2 전투 보상).
변경 사항
모두 단일 소스
tools/gen-slaydeck.mjs에서 생성(생성물: SlayDeckController.codeblock · ui/DefaultGroup.ui).RunDeck(보유 카드)·Gold·Floor·RunLength·RewardChoices·RunActive속성을 SlayDeckController에 추가(별도 RunState 분리는 후속).StartRun이 영속 상태 초기화 + 버튼 1회 바인딩,StartCombat은 전투별 상태만 초기화하고 RunDeck에서 드로·Floor 증가. 플레이어 HP는 전투 간 유지.Floor < RunLength면OfferReward(카드 3택1), 아니면 "런 클리어!".PickReward로 선택 카드를 RunDeck에 추가(건너뛰기 가능), 입력 잠금 가드.RewardHud(보상 카드 3장 + 건너뛰기) 생성.RUN_LENGTH=3·GOLD_PER_WIN=15)는 생성기 상수(향후 외부화).BindButtons를 StartRun 1회 호출로 이동(매 전투 호출 시 카드 핸들러 중첩 방지).검증 (메이커 Play, MCP)
범위 밖 (후속)
🤖 Generated with Claude Code