feat(bunsik): 화면 UI 개편 — 상점 탭 4개(업그레이드 갈래·꾸미기·알바생·내 가게), 꾸미기(배치) 화면, 홍보·손님 러시 버튼, 추천 구매 막대, 쫓아내기 버튼, 가게 이름·무지개 이름판, 4개 언어

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-14 01:47:39 +09:00
parent d72b166b97
commit d8eaa01495
14 changed files with 3050 additions and 389 deletions

View File

@@ -5,6 +5,52 @@ local Locale = require("../src/shared/Locale")
local Recipes = require("../src/shared/Recipes")
local T = require("./check")
local NOTIFY = {
"upgraded",
"newMenu",
"expanded",
"floor2",
"seatAdded",
"tableAdded",
"decorAdded",
"noSpace",
"seatMax",
"tableMax",
"tableFull",
"needStage",
"placeFail",
"hired",
"fired",
"staffLocked",
"staffMax",
"strike",
"strikeOver",
"renamed",
"nameRejected",
"designSet",
"designLocked",
"promoted",
"promoteNone",
"promoteFull",
"promoteWait",
"adUnavailable",
"kicked",
"kickedBy",
"shielded",
"kickOwn",
"rushOn",
"notEnough",
"boostGot",
"guestBonus",
"guestArrived",
"guestSeated",
"guestAte",
"guestHungry",
"visitFull",
"tutDone",
"devResetDone",
}
local ko = Locale.keys("ko")
table.sort(ko)
for _, lang in Locale.LANGS do
@@ -25,8 +71,38 @@ for _, lang in Locale.LANGS do
T.check(Locale.t(lang, st.key) ~= st.key, `{lang} 요리 안내 {st.key}`)
end
end
for _, p in Economy.PURCHASES do
T.check(Locale.itemName(lang, p.id) ~= "item_" .. p.id, `{lang} 업그레이드 이름 {p.id}`)
local function has(key: string, what: string)
T.check(Locale.t(lang, key) ~= key, `{lang} {what} {key}`)
end
for _, t in Economy.TRACKS do
has("track_" .. t.id, "업그레이드 갈래 이름")
has("fx_" .. t.id, "업그레이드 효과")
for _, lv in t.levels do
if t.id == "Stage" then
has(`stage_{lv.value}`, "건물 단계 이름")
end
end
end
has("stage_1", "건물 단계 이름")
for _, r in Economy.ROLES do
has("role_" .. r.id, "알바 역할")
has("roleDesc_" .. r.id, "알바 역할 설명")
end
for _, d in Economy.DECOR do
has("decor_" .. d.id, "소품 이름")
end
for _, d in Economy.DESIGNS do
has("design_" .. d.id, "디자인 이름")
end
for _, why in { "bounds", "overlap", "reserved", "floor", "blocked", "chair", "none" } do
has("why_" .. why, "배치 실패 이유")
end
for i = 1, 4 do
has(`side_{i}`, "의자 쪽")
end
-- 서버가 보내는 알림 키(NETWORK.md)
for _, key in NOTIFY do
has(key, "알림")
end
-- 치환 자리({money} 등)가 한국어와 같아야 함
for _, k in ko do
@@ -76,7 +152,7 @@ T.eq(
"같은 자리 두 번 치환"
)
T.eq(Locale.menuName("zh", "Gimbap"), "紫菜包饭", "중국어 메뉴 이름")
T.eq(Locale.itemName("en", "Expand"), "Indoor Shop", "영어 업그레이드 이름")
T.eq(Locale.t("en", "track_Speed"), "Customer Speed", "영어 갈래 이름")
T.eq(Locale.number(1234567), "1,234,567", "쉼표")
T.eq(Locale.number(999), "999", "쉼표 없음")
T.eq(Locale.number(0), "0", "0")