생성 때 고른 행성 형태·색 표시 · HOME 주간 정보

This commit is contained in:
Sn-Kinos
2026-10-05 23:21:44 +09:00
parent 55424bd4a2
commit c8c1a1ae67
40 changed files with 688 additions and 40 deletions
@@ -11,6 +11,7 @@ class PlanetVisualState {
this.heroNicknames = const [],
this.heroClaimCount,
this.colorKey,
this.planetType,
this.evolutionImminent = false,
});
final int? stage;
@@ -36,6 +37,9 @@ class PlanetVisualState {
/// 생성 때 고른 행성 컬러 키(C-50 · `fn-planet-create`). 성운이면 null 이다.
final String? colorKey;
/// 생성 때 고른 행성 형태(C-50 · `fn-planet-create` 가 팬덤 문서에 싣는 `planetType`). 성운이면 null.
final String? planetType;
final int? level;
final bool isEclipsed;
final bool isHibernating;
@@ -54,6 +58,7 @@ class PlanetVisualState {
PlanetVisualState(
isHibernating: data['isHibernating'] == true,
colorKey: data['colorKey'] is String ? data['colorKey'] as String : null,
planetType: data['planetType'] is String ? data['planetType'] as String : null,
stage: switch (data['stage']) {
int n when n >= 0 && n <= 6 => n,
_ => null,
+1
View File
@@ -169,6 +169,7 @@ class Repositories {
PlanetVisualState(
stage: current.stage,
colorKey: current.colorKey,
planetType: current.planetType,
isHibernating: current.isHibernating,
level: current.level,
evolutionImminent: current.evolutionImminent,