feat: 날씨 점수를 깐깐하게(96→92, 100점은 모든 조건이 완벽할 때만, 낮은 점수도 8/9로) — 히어로에 구간별 점수 근거(조건·비중·조건 점수·지금 값) weather_why
This commit is contained in:
1 parent
b5c280ca3c
commit
8f95519cb6
5 files changed
+67
-9
No files matched your search
@@ -156,6 +156,13 @@ class HeroStat(WebPacketProtocol):
|
||||
tone: Literal["normal", "warn", "rain"] = Field(description="normal=기본, warn=조심(노랑), rain=비(파랑)")
|
||||
|
||||
|
||||
class WeatherWhy(WebPacketProtocol):
|
||||
label: str
|
||||
weight: int = Field(description="비중 % (합 100)")
|
||||
score: int = Field(description="이 조건 점수 0~100")
|
||||
note: str = Field(description="지금 값 (예: 체감 19°, 편한 범위 18~24° 안)")
|
||||
|
||||
|
||||
class Hero(WebPacketProtocol):
|
||||
now_at: datetime
|
||||
sky_mode: Literal["morning", "day", "sunset", "night"]
|
||||
@@ -168,6 +175,7 @@ class Hero(WebPacketProtocol):
|
||||
will_rain_2h: Optional[bool] = None
|
||||
weather_score: Optional[int] = None
|
||||
weather_slots: dict[str, int] = Field(default_factory=dict, description="오늘 구간별 날씨 점수 {morning·day·evening·night: 점수}")
|
||||
weather_why: dict[str, list[WeatherWhy]] = Field(default_factory=dict, description="구간별 날씨 점수 근거(조건·비중·조건 점수·지금 값). 키는 weather_slots 와 같다")
|
||||
top1: Optional[TopIndex] = None
|
||||
bubble: Optional[str] = None
|
||||
moon_name: Optional[str] = Field(default=None, description="오늘 밤 달 모양: 삭·초승달·상현달·차오르는 달·보름달·기우는 달·하현달·그믐달")
|
||||
|
||||
Reference in new issue
Block a user