feat(bunsik): 꾸미기 모드(아래 물건 줄·이동·삭제), 가게 이름 색 10가지, 개발자 결제 테스트 모드

- [가게 꾸미기]를 누르면 창 없이 바로 꾸미기 모드: 아래 물건 줄(테이블·의자·소품 6가지, 값·개수)에서 고르면
  투명 미리보기를 들고 걸어가 [배치]. [이동]은 고른 가구를 들고 옮기기, [삭제]는 고른 가구를 빨갛게 표시한 뒤
  한 번 더 눌러 지우고 산 값 돌려받기(조리대·마지막 테이블/의자·의자가 보는 테이블·손님 앉은 의자는 막음)
- 새 요청 remove, Floor.remove, Shop.removeSeat(뒤 자리 손님·걷는 시간 번호 당김)
- 내 가게 탭: 이름 색 무료 10색 + 무지개(게임패스) 칸. 부지 속성 NameColor로 모두에게 보임
- 개발자 테스트 [결제 테스트 켜기/끄기]: 켜면 2배·부스트·러시·쫓아내기·광고 홍보·무지개·유료 디자인이
  결제 창 없이 바로 지급(이번 접속만), 게임패스는 안 가진 상태로 바꿔 사는 흐름을 볼 수 있고 끄면 실제 보유로 복구

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-14 05:32:32 +09:00
parent fdc5c05c2c
commit 25df3d4846
22 changed files with 906 additions and 329 deletions

View File

@@ -312,6 +312,30 @@ for _, d in { { 0, -4 }, { 0, 4 }, { 4, 0 }, { -4, 0 }, { 6, 6 }, { -6, -6 } } d
end
end
check(movedWith, "의자 붙은 테이블 옮기기")
-- 지우기(산 값 돌려받기)
local decorN = #c.layout.decor
local m0 = c.shop.money
check(c:removeItem("decor", 1), "소품 지우기")
eq(#c.layout.decor, decorN - 1, "소품 하나 줄어듦")
check(c.shop.money > m0, "소품 값 돌려받음")
check(noted("removed"), "지운 알림")
check(not c:removeItem("stove", 1), "조리대는 못 지움")
check(noted("removeFail"), "못 지우는 이유 알림")
local freeChair = nil
for ci in c.layout.chairs do
if c.shop.seatTaken[ci] == nil then
freeChair = ci
end
end
local seatsN = #c.layout.chairs
check(freeChair ~= nil and c:removeItem("chair", freeChair), "빈 의자 지우기")
eq(owner:GetAttribute("Seats"), seatsN - 1, "자리 수 줄어듦")
eq(c.shop.stats.seats, seatsN - 1, "손님 자리 수도 줄어듦")
check(furniture:FindFirstChild("Chair" .. seatsN) == nil, "의자 모형도 줄어듦")
local busy = next(c.shop.seatTaken)
if busy then
check(not c:removeItem("chair", busy), "손님이 앉은 의자는 못 지움")
end
c.shop.money = 0
check(not c:buyTable(), "돈 모자라면 테이블 못 삼")
check(not c:buyItem("chair", nil, { kind = "chair", x = 0, z = 0, f = 1, r = 0 }), "돈 모자라면 의자 못 놓음")
@@ -338,6 +362,14 @@ c:setRainbowOwned(true)
eq(slots[1].model:GetAttribute("Rainbow"), true, "게임패스 있으면 무지개")
c:setRainbow(false)
eq(slots[1].model:GetAttribute("Rainbow"), false, "무지개 끄기")
c:setRainbow(true)
c:setNameColor(3)
eq(slots[1].model:GetAttribute("NameColor"), 3, "이름 색 속성(모두에게)")
eq(owner:GetAttribute("NameColor"), 3, "이름 색 속성(내 화면)")
eq(slots[1].model:GetAttribute("Rainbow"), false, "색을 고르면 무지개는 꺼짐")
eq(data.NameColor, 3, "세이브에 이름 색")
c:setNameColor(99)
eq(owner:GetAttribute("NameColor"), 0, "없는 색은 기본색")
local Game = require(Server.Game)
eq(Game._cleanName(" 가나다\n라 "), "가나다 라", "이름 공백 정리")
eq(utf8.len(Game._cleanName(string.rep("가", 30)) :: string), Economy.NAME_MAX, "이름 길이 자르기")