wip(bunsik): 서버 개편 — 갈래 업그레이드, 배치형 테이블·의자·조리대, 실내·2층 건물과 디자인 5종, 알바생 역할·시급, 홍보·쫓아내기·손님 러시, 가게 이름 필터·무지개, 세이브 버전 2 이전

로블록스 서버 통합 테스트 tests/cloud/server.luau 1003개 통과(저장 버전 25). 화면 UI는 다음 커밋.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-14 01:34:37 +09:00
parent 52668f219a
commit 51298fcfa1
15 changed files with 2701 additions and 596 deletions

View File

@@ -32,6 +32,7 @@ Floor.X0 = -33
Floor.X1 = 33
Floor.Z0 = -37
Floor.Z1 = 19
Floor.BASE_Y = 0.2 -- 부지 바닥 윗면 높이(부지 원점 기준)
Floor.FLOOR2_Y = 15 -- 2층 바닥 높이(1층 바닥 기준)
Floor.CELL = 1
@@ -468,7 +469,19 @@ end
-- 새 테이블(+의자 1개)을 놓을 곳을 찾아 layout에 넣습니다. 놓으면 테이블 번호를 돌려줍니다.
function Floor.addTable(layout: Layout, stage: number): number?
local floors = if stage >= 3 then { 1, 2 } else { 1 }
local floors: { number } = { 1 }
if stage >= 3 then
-- 2층 건물이면 테이블이 적은 층부터 채웁니다(2층이 바로 쓰이게).
local n1, n2 = 0, 0
for _, t in layout.tables do
if t.f == 2 then
n2 += 1
else
n1 += 1
end
end
floors = if n2 < n1 then { 2, 1 } else { 1, 2 }
end
for _, f in floors do
for _, c in candidates(f) do
local test = Floor.clone(layout)
@@ -515,7 +528,7 @@ function Floor.addDecor(layout: Layout, stage: number, kind: string): number?
if not Floor.FOOTPRINT[kind] or kind == "Stove" then
return nil
end
local floors = if stage >= 3 then { 1, 2 } else { 1 }
local floors: { number } = if stage >= 3 then { 1, 2 } else { 1 }
for _, f in floors do
-- 소품은 벽 쪽부터 찾습니다.
local list = {}
@@ -636,7 +649,7 @@ function Floor.repair(layout: Layout, stage: number): Layout
end
end
local placed = false
local floors = if stage >= 3 then { 2, 1 } else { 1 }
local floors: { number } = if stage >= 3 then { 2, 1 } else { 1 }
for _, f in floors do
if placed then
break