fix: Critical 버그 3건 수정
- death_handler: print() → debugPrint()로 변경 (프로덕션 성능) - arena_combat_simulator: DOT 스킬 INT/WIS 실제 스탯 사용 - ad_service: iOS 광고 ID 플레이스홀더를 테스트 ID로 대체
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user