feat(core): 몬스터 등급 시스템 추가
- MonsterGrade 열거형 및 색상 정의 - GameState/ItemStats 확장 - pq_logic 유틸리티 함수 추가 - ASCII 색상 상수 추가
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import 'package:asciineverdie/src/core/animation/canvas/ascii_cell.dart';
|
||||
|
||||
/// 아이템 희귀도
|
||||
enum ItemRarity {
|
||||
common,
|
||||
@@ -23,6 +25,17 @@ enum ItemRarity {
|
||||
epic => 400,
|
||||
legendary => 1000,
|
||||
};
|
||||
|
||||
/// 공격 이펙트 셀 색상 (Phase 9: 무기 등급별 이펙트)
|
||||
///
|
||||
/// common은 기본 positive(시안), 나머지는 등급별 고유 색상
|
||||
AsciiCellColor get effectCellColor => switch (this) {
|
||||
ItemRarity.common => AsciiCellColor.positive,
|
||||
ItemRarity.uncommon => AsciiCellColor.rarityUncommon,
|
||||
ItemRarity.rare => AsciiCellColor.rarityRare,
|
||||
ItemRarity.epic => AsciiCellColor.rarityEpic,
|
||||
ItemRarity.legendary => AsciiCellColor.rarityLegendary,
|
||||
};
|
||||
}
|
||||
|
||||
/// 아이템 스탯 보정치
|
||||
|
||||
Reference in New Issue
Block a user