diff --git a/Assets/Scripts/OutGame/Scenario/ScenarioModeRules.cs b/Assets/Scripts/OutGame/Scenario/ScenarioModeRules.cs index a6679e27..986d56f4 100644 --- a/Assets/Scripts/OutGame/Scenario/ScenarioModeRules.cs +++ b/Assets/Scripts/OutGame/Scenario/ScenarioModeRules.cs @@ -74,16 +74,25 @@ namespace TKS.OutGame if (hard && !HardOpen(d, id)) return "열전 = 연의를 이긴 뒤"; EconomyRules.TickStamina(db, d, nowUtc); int cost = ContentTables.Int(M, "stamina_cost"); - if (d.stamina < cost) return "군량이 부족합니다 — 필요 " + cost; + if (!FreeEntry && d.stamina < cost) return "군량이 부족합니다 — 필요 " + cost; return null; } + /// + /// 플레이 테스트 「TKS/테스트/전 스테이지 열기 (군량 면제)」가 켜져 있으면 연의 전기도 군량을 보지도 쓰지도 않는다(지면 환급도 없음) + /// — 2026-11-18 PD 「연의 전기를 진행하려는데 입장 재화가 없어 진행할 수 없어 · 입장 재화 소진 문제를 해결해줘」(그 면제가 출정에만 걸려 있었음). + /// + static bool FreeEntry + { + get { return TestOptions.UnlockAllStages; } + } + /// 입장 = 군량 사용. public static string Enter(OutGameData db, SaveData d, string id, bool hard, DateTime nowUtc) { var why = Can(db, d, id, hard, nowUtc); if (why != null) return why; - EconomyRules.SpendStamina(db, d, ContentTables.Int(M, "stamina_cost"), nowUtc); + if (!FreeEntry) EconomyRules.SpendStamina(db, d, ContentTables.Int(M, "stamina_cost"), nowUtc); return null; } @@ -95,7 +104,7 @@ namespace TKS.OutGame if (lines != null) m.lines.AddRange(lines); if (!win) { - int back = Mathf.RoundToInt(ContentTables.Int(M, "stamina_cost") * ContentTables.Num(M, "refund_on_lose_pct") / 100f); + int back = FreeEntry ? 0 : Mathf.RoundToInt(ContentTables.Int(M, "stamina_cost") * ContentTables.Num(M, "refund_on_lose_pct") / 100f); if (back > 0) EconomyRules.AddStamina(db, d, back, nowUtc); m.lines.Add("패배 — 군량 " + back + " 환급"); return m;