From c4280c929da177541a92c48a48b493d80cec59cd Mon Sep 17 00:00:00 2001 From: JiWoong Sul Date: Thu, 19 Mar 2026 14:48:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Critical=20=EB=B2=84=EA=B7=B8=203?= =?UTF-8?q?=EA=B1=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - death_handler: print() → debugPrint()로 변경 (프로덕션 성능) - arena_combat_simulator: DOT 스킬 INT/WIS 실제 스탯 사용 - ad_service: iOS 광고 ID 플레이스홀더를 테스트 ID로 대체 --- lib/src/core/engine/ad_service.dart | 8 ++++---- lib/src/core/engine/arena_combat_simulator.dart | 4 ++-- lib/src/core/engine/death_handler.dart | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/src/core/engine/ad_service.dart b/lib/src/core/engine/ad_service.dart index 56f1ed5..e2a3f19 100644 --- a/lib/src/core/engine/ad_service.dart +++ b/lib/src/core/engine/ad_service.dart @@ -76,12 +76,12 @@ class AdService { // ───────────────────────────────────────────────────────────────────────── static const String _prodRewardedAndroid = 'ca-app-pub-6691216385521068/3457464395'; // Android 리워드 광고 - static const String _prodRewardedIos = - 'ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXX'; // TODO: iOS 리워드 광고 ID 교체 + // TODO(ios): AdMob iOS 광고 ID — iOS 출시 전 필수 교체 + static const String _prodRewardedIos = _testRewardedIos; static const String _prodInterstitialAndroid = 'ca-app-pub-6691216385521068/1625507977'; // Android 인터스티셜 광고 - static const String _prodInterstitialIos = - 'ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXX'; // TODO: iOS 인터스티셜 광고 ID 교체 + // TODO(ios): AdMob iOS 광고 ID — iOS 출시 전 필수 교체 + static const String _prodInterstitialIos = _testInterstitialIos; /// 리워드 광고 단위 ID (릴리즈 빌드: 프로덕션 ID, 디버그 빌드: 테스트 ID) String get _rewardAdUnitId { diff --git a/lib/src/core/engine/arena_combat_simulator.dart b/lib/src/core/engine/arena_combat_simulator.dart index 854c2b5..3d60b51 100644 --- a/lib/src/core/engine/arena_combat_simulator.dart +++ b/lib/src/core/engine/arena_combat_simulator.dart @@ -370,8 +370,8 @@ class ArenaCombatSimulator { skill: selectedSkill, player: updatedPlayer, skillSystem: updatedSkillSystem, - playerInt: updatedPlayer.atk ~/ 10, - playerWis: updatedPlayer.def ~/ 10, + playerInt: updatedPlayer.intelligence, + playerWis: updatedPlayer.wis, ); updatedPlayer = skillResult.updatedPlayer; updatedSkillSystem = skillResult.updatedSkillSystem; diff --git a/lib/src/core/engine/death_handler.dart b/lib/src/core/engine/death_handler.dart index 0af2b3a..0f1ff73 100644 --- a/lib/src/core/engine/death_handler.dart +++ b/lib/src/core/engine/death_handler.dart @@ -1,3 +1,5 @@ +import 'package:flutter/foundation.dart'; + import 'package:asciineverdie/src/core/model/equipment_item.dart'; import 'package:asciineverdie/src/core/model/equipment_slot.dart'; import 'package:asciineverdie/src/core/model/game_state.dart'; @@ -104,8 +106,7 @@ class DeathHandler { final roll = state.rng.nextInt(100); // 0~99 final shouldLoseEquipment = roll < lossChancePercent; - // ignore: avoid_print - print( + debugPrint( '[Death] Lv$level lossChance=$lossChancePercent% roll=$roll ' 'shouldLose=$shouldLoseEquipment', ); @@ -157,8 +158,7 @@ class DeathHandler { EquipmentItem.empty(lostItemSlot), ); - // ignore: avoid_print - print('[Death] Lost item: ${lostItem.name} (slot: $lostItemSlot)'); + debugPrint('[Death] Lost item: ${lostItem.name} (slot: $lostItemSlot)'); return ( equipment: newEquipment,