fix(ui): 코드리뷰 발견 UI 버그 6건 수정
1. [높음] DealDamageToTarget에 ShowDmgPop 추가 — 단일/랜덤 공격 데미지 팝업 누락 해소(팝업 붙이던 PlayAttackFx는 죽은코드). 중복될 물약 ShowDmgPop 제거. 2. [중간] hand.mjs 다단 랜덤공격 total/hitN을 math.floor로 — 소수 HP → render %d 크래시(akabeko/penNib 조건) 방지. 공통케이스 값 불변(=perHit). 3. [높음] ShowShop이 미보유 유물만 제시 — 상점 중복 유물 판매→스택 방지. 빈 슬롯 숨김·빈 유물 구매 가드 포함. 4. [중간] PickReward 스킵 시에도 BonusRewardScreens 소비 — 보상 건너뛰기 시 남은 보너스 보상 전량 소실 방지. 5. [낮음] RenderAllDeck: CodexMode면 제목 "카드 도감"으로 — 도감 제목 오표기(전사 전체 덱) 수정. 6. [낮음] OpenAllDeck에 CodexMode 리셋 추가(opener 간 비대칭 해소). 전 카테고리 검증: cbgap GAP 0·cbprops 0·cardkinds 정합·테스트 105/105 (sim-balance 회귀 없음). §6 미러 무영향. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011xhLoQbJvQYL65kBtDNDTy
This commit is contained in:
@@ -47,7 +47,7 @@ if slot ~= 0 and self.RewardChoices ~= nil then
|
||||
table.insert(self.RunDeck, id)
|
||||
end
|
||||
end
|
||||
if self.BonusRewardScreens ~= nil and self.BonusRewardScreens > 0 and slot ~= 0 then
|
||||
if self.BonusRewardScreens ~= nil and self.BonusRewardScreens > 0 then
|
||||
self.BonusRewardScreens = self.BonusRewardScreens - 1
|
||||
self:OfferReward()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user