feat: 구 중심 20km 안에 서쪽이 트인 노을 명소가 있으면 노을 점수 가산

This commit is contained in:
skkim committed 2026-10-12 14:41:09 +09:00
1 parent 3857ef8d14
commit cac6ea236f
6 files changed
+58 -4

No files matched your search

+5
View File
@@ -34,6 +34,11 @@ def test_air_factor_centers_on_usual_air_and_clearing_rain_raises():
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