chore: main 병합 — 노을 명소 가산·공기 보정 변경과 노을 등급 문구 작업 합치기

This commit is contained in:
minaChoi committed 2026-10-12 15:39:57 +09:00
commit 934566d45c
7 files changed
+146 -64

No files matched your search

+10 -4
View File
@@ -24,15 +24,21 @@ def test_score_rises_steadily_with_a_few_clouds():
assert scores == sorted(scores) and len(set(scores)) == len(scores) # 맑은 날도 구름 몇 %로 갈리고 10%에서 꺾이지 않는다
def test_air_factor_hazy_humid_lowers_and_clearing_rain_raises():
def test_air_factor_centers_on_usual_air_and_clearing_rain_raises():
assert air_factor(Air()) == 1.0
assert air_factor(Air(visibility_km=40, humidity=50)) == 1.0
assert air_factor(Air(visibility_km=5)) == 0.6 and air_factor(Air(humidity=90)) == 0.75
assert 0.6 < air_factor(Air(visibility_km=30)) < 1.0
assert air_factor(Air(visibility_km=20, humidity=60)) == 1.0 # 평소 공기
assert air_factor(Air(visibility_km=5)) == 0.8 and air_factor(Air(humidity=90)) == 0.85
assert air_factor(Air(visibility_km=40)) == 1.12 and air_factor(Air(humidity=40)) == 1.06 # 맑고 건조하면 올라간다
assert 0.8 < air_factor(Air(visibility_km=12.5)) < 1.0 < air_factor(Air(visibility_km=30)) < 1.12
assert air_factor(Air(rain_before=70, rain_now=10)) == 1.15
assert air_factor(Air(rain_before=70, rain_now=60)) == 1.0 # 아직 비 오는 중이면 가산 없음
def test_open_west_horizon_adds_bonus():
assert air_factor(Air(open_west=True)) == 1.1
assert air_factor(Air(open_west=True, rain_before=70, rain_now=10)) == 1.15 * 1.1
def test_low_clouds_toward_sun_block_the_light():
canvas = Layers(low=0, mid=20, high=50)
assert grade(score(canvas, Layers(low=90, mid=50, high=0))) is SkyGrade.GRAY