feat(bunsik): Rojo 골격, 도구 버전 고정(rokit), 경제 수치 모듈과 단위 테스트

- rokit.toml: rojo 7.7.1, selene 0.32.0, stylua 2.6.0, lune 0.11.0
- default.project.json: Shared/Server/Client 매핑, 바닥판과 스폰
- src/shared/Economy.luau: ECONOMY.md 수치
- tests/Economy.spec.luau: lune 단위 테스트
- tools/check.sh: stylua·selene·lune·rojo build 일괄 실행

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-12 00:44:44 +09:00
parent 1958a2dd99
commit 61b3f7730d
10 changed files with 162 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
--!strict
-- 분식집 첫 10분 경제 수치. ECONOMY.md 표, tools/economy_sim.py 와 같은 숫자여야 합니다.
export type Effect = {
seats: number?, -- 테이블 수
spawn: number?, -- 손님 간격(초)
cook: number?, -- 조리 시간(초)
price: number?, -- 가격 배율
helper: boolean?, -- 알바생(조리 자동)
menu: string?, -- 해금할 메뉴
}
export type Purchase = {
id: string,
name: string,
cost: number,
effect: Effect,
}
local Economy = {}
Economy.WALK = 5 -- 조리대 -> 테이블 -> 조리대 왕복(초)
Economy.EAT = 6 -- 식사 시간(초)
Economy.START = {
money = 0,
seats = 1,
spawn = 6,
cook = 2.5,
price = 1,
helper = false,
menus = { "Tteokbokki" },
}
Economy.MENUS = {
Tteokbokki = { name = "떡볶이", price = 10 },
Gimbap = { name = "김밥", price = 20 },
Sundae = { name = "순대", price = 35 },
}
Economy.PURCHASES = {
{ id = "Table2", name = "테이블 2", cost = 10, effect = { seats = 2 } },
{ id = "UnlockGimbap", name = "김밥 해금", cost = 40, effect = { menu = "Gimbap" } },
{ id = "Sign1", name = "간판 Lv1", cost = 70, effect = { spawn = 5 } },
{ id = "Stove1", name = "화구 Lv1", cost = 90, effect = { cook = 1.5 } },
{ id = "Table3", name = "테이블 3", cost = 120, effect = { seats = 3 } },
{ id = "UnlockSundae", name = "순대 해금", cost = 160, effect = { menu = "Sundae" } },
{ id = "Sauce1", name = "양념 비법 Lv1", cost = 240, effect = { price = 1.5 } },
{ id = "Helper", name = "알바생 고용", cost = 360, effect = { helper = true } },
{ id = "Table4", name = "테이블 4", cost = 480, effect = { seats = 4, spawn = 4 } },
{ id = "Expand", name = "실내 분식집 확장", cost = 600, effect = {} },
} :: { Purchase }
return Economy