BurningTimesAi/공유/기획/FirstRising/맵/tools/patch_look3.py

31 lines
2.9 KiB
Python

# -*- coding: utf-8 -*-
# 화면 확인(2026-09-28 BT36) 뒤 손보기 3: 사막 바위 풀 · 분위기 밝기
import io
def patch(path, pairs):
s = io.open(path, encoding="utf-8").read()
for a, b in pairs:
assert s.count(a) == 1, (path, a[:70], s.count(a))
s = s.replace(a, b)
io.open(path, "w", encoding="utf-8", newline="\n").write(s)
print("ok", path)
patch("maps_def_desert.py", [
(" rock = [item(pf(DR, 'MEP_Rock_' + n), 'h', 1.0, 1.9, 0.9, 2, False, 'c', sink=0.24) for n in ('01', '01_a', '01_b', '01_c', '01_d', '02', '02_a', '02_b')]\n"
" rock_big = [item(pf(DR, 'MEP_Rock_' + n), 'h', 2.2, 3.6, 1.8, 1, True, 'c', sink=0.22) for n in ('03', '03_a', '03_b', '04', '04_a', '04_b', '04_c', '04_d')]\n",
" # 바위 메시 실측(2026-09-28): 01_a~d 만 둥근 바윗덩이(높이/너비 0.4~0.95 · 밑이 넓다)이고 02 · 03 · 04 는 돌기둥(너비 3 m · 높이 8~17 m)이다.\n"
" # 돌기둥을 높이 1~2 m 로 줄여 길가에 놓았더니 뾰족한 쐐기가 땅에 꽂힌 듯 떠 보였다 → 길가 · 공터 바위는 바윗덩이만 쓰고, 돌기둥은 먼 배경에 제 크기로 세운다\n"
" rock = [item(pf(DR, 'MEP_Rock_' + n), 'l', 1.4, 2.6, 0.9, 2, False, 'c', sink=0.14) for n in ('01_a', '01_b', '01_c', '01_d')]\n"
" rock_big = [item(pf(DR, 'MEP_Rock_' + n), 'l', 3.2, 5.0, 1.8, 2, True, 'c', sink=0.14) for n in ('01_a', '01_b', '01_c', '01_d')] + \\n"
" [item(pf(DR, 'MEP_Rock_' + n), 'h', 3.2, 4.6, 1.4, 1, True, 'c', sink=0.16) for n in ('03_a', '03_b')]\n"
" spire = [item(pf(DR, 'MEP_Rock_' + n), 'h', 7.0, 12.0, 1.8, 1, True, 'c', sink=0.10) for n in ('02', '02_b', '03', '04', '04_c', '04_d')]\n"),
(" pool('rock', *rock), pool('rock_big', *rock_big),\n", " pool('rock', *rock), pool('rock_big', *rock_big), pool('spire', *spire),\n"),
("pool('under', *[item(pf(DR, 'MEP_Rock_' + n), 'h', 0.9, 1.5, 0.8, 2, False, 'c', sink=0.24) for n in ('01_a', '01_c', '02_a', '02_b')],",
"pool('under', *[item(pf(DR, 'MEP_Rock_' + n), 'l', 1.2, 2.0, 0.8, 2, False, 'c', sink=0.14) for n in ('01_a', '01_b', '01_c', '01_d')],"),
("band('큰 선인장', 4.0, 16.0, 3.6, 0.16, 'cactus_big', 'cactus', seen=4.0),", "band('돌기둥', 9.0, 26.0, 5.0, 0.14, 'spire', 'rock', seen=6.0), band('큰 선인장', 4.0, 16.0, 3.6, 0.16, 'cactus_big', 'cactus', seen=4.0),"),
(" a = atmo(moon=(0.74, 0.84, 1.0), moon_i=2.0, moon_euler=(46, 300, 0), fog=(0.13, 0.16, 0.22), fog0=11, fog1=64, sky=(0.30, 0.38, 0.50), eq=(0.24, 0.24, 0.26), gnd=(0.15, 0.11, 0.08),\n"
" exposure=1.15, saturation=-2,",
" a = atmo(moon=(0.86, 0.90, 1.0), moon_i=2.6, moon_euler=(46, 300, 0), fog=(0.15, 0.18, 0.24), fog0=12, fog1=68, sky=(0.38, 0.46, 0.60), eq=(0.32, 0.31, 0.31), gnd=(0.20, 0.15, 0.11),\n"
" exposure=1.45, saturation=4,"),
])