feat(scenes): update 20572 to Moment of Joy (Planarcadia beta) and auto-bust scene cache

This commit is contained in:
CAtlas0784 committed 2026-10-13 16:33:19 +07:00
1 parent b481d35adb
commit ced1b6a780
3 files changed
+12 -9

No files matched your search

+7 -7
View File
@@ -1,6 +1,6 @@
{ {
"version": "4.6.5X-MASTER-LOCALIZED", "version": "4.7.0-BETA-UPDATE",
"updated_at": "2026-10-04", "updated_at": "2026-10-13",
"total_worlds": 8, "total_worlds": 8,
"total_scenes": 85, "total_scenes": 85,
"total_combat_scenes": 16, "total_combat_scenes": 16,
@@ -2096,17 +2096,17 @@
"beta_notice_zh": "需要 4.7 Beta 测试端,正式服/Product 客户端会卡在列车加载界面" "beta_notice_zh": "需要 4.7 Beta 测试端,正式服/Product 客户端会卡在列车加载界面"
}, },
{ {
"name": "Fleeting Joy", "name": "Moment of Joy",
"name_th": "Fleeting Joy (บาร์ระคนสุขโศก)", "name_th": "Moment of Joy (Fleeting Joy / บาร์ระคนสุขโศก)",
"name_zh": "瞬息欢愉", "name_zh": "瞬息欢愉",
"plane_id": 20572, "plane_id": 20572,
"x": -743, "x": -743,
"y": 2435, "y": 2435,
"z": -64637, "z": -64637,
"map_layer": 1, "map_layer": 1,
"desc": "A bar where sorrow and joy are mixed", "desc": "A bar where sorrow and joy are mixed (Official EN: Moment of Joy, formerly Fleeting Joy)",
"desc_th": "บาร์สังสรรค์ที่ความโศกเศร้าและความสุขผสมผสานกัน", "desc_th": "บาร์สังสรรค์ที่ความโศกเศร้าและความสุขผสมผสานกัน (ชื่อทางการ EN: Moment of Joy / เดิมเรียก Fleeting Joy)",
"desc_zh": "悲欢交织的瞬息酒吧", "desc_zh": "悲欢交织的瞬息酒吧(官方英文:Moment of Joy,此前曾称 Fleeting Joy)",
"calyx_x": -743, "calyx_x": -743,
"calyx_y": -999999, "calyx_y": -999999,
"calyx_z": -64637, "calyx_z": -64637,
@@ -23,8 +23,10 @@ object SceneRepository {
val defaultObj = JSONObject(defaultJson) val defaultObj = JSONObject(defaultJson)
val defaultBeta = defaultObj.optInt("total_beta_scenes", 0) val defaultBeta = defaultObj.optInt("total_beta_scenes", 0)
val cachedBeta = cachedObj.optInt("total_beta_scenes", 0) val cachedBeta = cachedObj.optInt("total_beta_scenes", 0)
// Discard stale cache if bundled asset has more beta scene definitions val defaultVer = defaultObj.optString("version", "")
if (defaultBeta > cachedBeta) { val cachedVer = cachedObj.optString("version", "")
// Discard stale cache if bundled asset has newer version or more beta scene definitions
if (defaultBeta > cachedBeta || (defaultVer.isNotBlank() && defaultVer != cachedVer)) {
cachedFile.delete() cachedFile.delete()
defaultJson defaultJson
} else { } else {
+1
View File
@@ -2,3 +2,4 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
android.useAndroidX=true android.useAndroidX=true
kotlin.code.style=official kotlin.code.style=official
android.nonTransitiveRClass=true android.nonTransitiveRClass=true
org.gradle.java.home=C:/Program Files/Java/jdk-22