style: dart format 적용

This commit is contained in:
JiWoong Sul
2026-01-14 23:07:03 +09:00
parent 249394f548
commit de20183b73
8 changed files with 68 additions and 43 deletions

View File

@@ -142,16 +142,8 @@ class TestCharacterService {
'Exception Handler',
'Null Guard',
],
EquipmentSlot.helm => [
'Neural Helm',
'Thought Processor',
'Mind Buffer',
],
EquipmentSlot.hauberk => [
'Matrix Armor',
'Byte Mail',
'Kernel Plate',
],
EquipmentSlot.helm => ['Neural Helm', 'Thought Processor', 'Mind Buffer'],
EquipmentSlot.hauberk => ['Matrix Armor', 'Byte Mail', 'Kernel Plate'],
EquipmentSlot.brassairts => [
'Bit Guards',
'Stream Bracers',
@@ -167,11 +159,7 @@ class TestCharacterService {
'Handler Mitts',
'Pointer Grips',
],
EquipmentSlot.gambeson => [
'Layer Vest',
'Cache Coat',
'Buffer Jacket',
],
EquipmentSlot.gambeson => ['Layer Vest', 'Cache Coat', 'Buffer Jacket'],
EquipmentSlot.cuisses => [
'Register Guards',
'Stack Protectors',

View File

@@ -450,7 +450,9 @@ class GameDataL10n {
final special = words.last;
// Attrib와 Special이 유효한지 확인
final attribMap = isKo ? itemAttribTranslationsKo : itemAttribTranslationsJa;
final attribMap = isKo
? itemAttribTranslationsKo
: itemAttribTranslationsJa;
final specialMap = isKo ? specialTranslationsKo : specialTranslationsJa;
if (!attribMap.containsKey(attrib) && !specialMap.containsKey(special)) {
return null;
@@ -472,7 +474,9 @@ class GameDataL10n {
static String? _tryTranslateMonsterDrop(String itemString, bool isKo) {
// 드롭 아이템 번역 맵 선택 (통합 맵 사용)
final dropMap = isKo ? allDropTranslationsKo : allDropTranslationsJa;
final monsterMap = isKo ? allMonsterTranslationsKo : allMonsterTranslationsJa;
final monsterMap = isKo
? allMonsterTranslationsKo
: allMonsterTranslationsJa;
// (대소문자 무시, 아이템 문자열 끝에서 매칭)
for (final entry in dropMap.entries) {

View File

@@ -181,7 +181,10 @@ class GameSave {
)
.toList(),
),
equipment: _equipmentFromJson(equipmentJson, json['version'] as int? ?? 2),
equipment: _equipmentFromJson(
equipmentJson,
json['version'] as int? ?? 2,
),
skillBook: SkillBook(
skills: skillsJson
.map(
@@ -333,10 +336,7 @@ Equipment _equipmentFromJson(Map<String, dynamic> json, int version) {
}
}
return Equipment(
items: items,
bestIndex: json['bestIndex'] as int? ?? 0,
);
return Equipment(items: items, bestIndex: json['bestIndex'] as int? ?? 0);
}
// v2 이하: 레거시 형식 (문자열 기반)

View File

@@ -96,7 +96,8 @@ class _ArenaResultPanelState extends State<ArenaResultPanel>
try {
// macOS: Downloads 폴더에 저장 (사용자가 쉽게 찾을 수 있도록)
final directory = await getDownloadsDirectory() ??
final directory =
await getDownloadsDirectory() ??
await getApplicationDocumentsDirectory();
final timestamp = DateTime.now().toIso8601String().replaceAll(':', '-');
final challenger = widget.result.match.challenger.characterName;
@@ -164,13 +165,15 @@ class _ArenaResultPanelState extends State<ArenaResultPanel>
'class': entry.klass,
'combatStats': entry.finalStats?.toJson(),
'equipment': entry.finalEquipment
?.map((EquipmentItem e) => {
'slot': e.slot.name,
'name': e.name,
'level': e.level,
'rarity': e.rarity.name,
'stats': e.stats.toJson(),
})
?.map(
(EquipmentItem e) => {
'slot': e.slot.name,
'name': e.name,
'level': e.level,
'rarity': e.rarity.name,
'stats': e.stats.toJson(),
},
)
.toList(),
'skills': entry.finalSkills,
};

View File

@@ -142,7 +142,8 @@ class _FrontScreenState extends State<FrontScreen> with RouteAware {
onHallOfFame: widget.onHallOfFame != null
? () => widget.onHallOfFame!(context)
: null,
onLocalArena: widget.onLocalArena != null &&
onLocalArena:
widget.onLocalArena != null &&
widget.hallOfFameCount >= 2
? () => widget.onLocalArena!(context)
: null,

View File

@@ -206,7 +206,9 @@ class _SettingsScreenState extends State<SettingsScreen> {
Widget _buildDebugSection() {
return Card(
color: Theme.of(context).colorScheme.errorContainer.withValues(alpha: 0.3),
color: Theme.of(
context,
).colorScheme.errorContainer.withValues(alpha: 0.3),
child: Padding(
padding: const EdgeInsets.all(16),
child: Column(