refactor: switch to key-based i18n for choices, revert inline textEn approach
This commit is contained in:
@@ -44,7 +44,6 @@
|
||||
"choices": [
|
||||
{
|
||||
"text": "走向左边那扇发光的门",
|
||||
"textEn": "Walk towards the glowing door on the left",
|
||||
"textKey": "scene.intro.choice.left_door",
|
||||
"targetScene": "left_door",
|
||||
"effects": [
|
||||
@@ -53,7 +52,6 @@
|
||||
},
|
||||
{
|
||||
"text": "走向右边那扇普通的门",
|
||||
"textEn": "Walk towards the plain door on the right",
|
||||
"textKey": "scene.intro.choice.right_door",
|
||||
"targetScene": "right_door",
|
||||
"effects": [
|
||||
@@ -62,13 +60,11 @@
|
||||
},
|
||||
{
|
||||
"text": "仔细搜索房间",
|
||||
"textEn": "Search the room carefully",
|
||||
"textKey": "scene.intro.choice.search",
|
||||
"targetScene": "investigation_site"
|
||||
},
|
||||
{
|
||||
"text": "留在原地,什么也不做",
|
||||
"textEn": "Stay where you are, do nothing",
|
||||
"textKey": "scene.intro.choice.stay",
|
||||
"targetScene": "stay"
|
||||
}
|
||||
@@ -111,7 +107,6 @@
|
||||
}
|
||||
],
|
||||
"choices": [
|
||||
{ "text": "离开房间", "textEn": "Leave the room", "targetScene": "corridor" }
|
||||
]
|
||||
},
|
||||
"corridor": {
|
||||
@@ -151,7 +146,6 @@
|
||||
"choices": [
|
||||
{
|
||||
"text": "与陌生人握手",
|
||||
"textEn": "Shake hands with the stranger",
|
||||
"targetScene": "trust_ending",
|
||||
"effects": [
|
||||
{ "type": "add", "target": "trust", "value": 30 }
|
||||
@@ -159,7 +153,6 @@
|
||||
},
|
||||
{
|
||||
"text": "拒绝握手,保持警惕",
|
||||
"textEn": "Refuse to shake hands, stay alert",
|
||||
"targetScene": "alone_ending"
|
||||
}
|
||||
]
|
||||
@@ -191,12 +184,10 @@
|
||||
"choices": [
|
||||
{
|
||||
"text": "继续前进",
|
||||
"textEn": "Continue forward",
|
||||
"targetScene": "continue_ending"
|
||||
},
|
||||
{
|
||||
"text": "回头",
|
||||
"textEn": "Turn back",
|
||||
"targetScene": "intro"
|
||||
}
|
||||
]
|
||||
@@ -207,12 +198,10 @@
|
||||
"choices": [
|
||||
{
|
||||
"text": "继续前进",
|
||||
"textEn": "Continue forward",
|
||||
"targetScene": "continue_ending"
|
||||
},
|
||||
{
|
||||
"text": "回头",
|
||||
"textEn": "Turn back",
|
||||
"targetScene": "intro"
|
||||
}
|
||||
]
|
||||
@@ -223,12 +212,10 @@
|
||||
"choices": [
|
||||
{
|
||||
"text": "返回调查现场",
|
||||
"textEn": "Return to the investigation scene",
|
||||
"targetScene": "investigation_site"
|
||||
},
|
||||
{
|
||||
"text": "离开",
|
||||
"textEn": "Leave",
|
||||
"targetScene": "corridor"
|
||||
}
|
||||
]
|
||||
@@ -243,7 +230,6 @@
|
||||
"loopStart": 3.0,
|
||||
"loopEnd": 6.0,
|
||||
"choices": [
|
||||
{ "text": "站起来离开", "textEn": "Stand up and leave", "targetScene": "alone_ending" }
|
||||
]
|
||||
},
|
||||
"trust_ending": {
|
||||
@@ -252,7 +238,6 @@
|
||||
"choices": [
|
||||
{
|
||||
"text": "开启信任的旅程(需要 trust >= 80)",
|
||||
"textEn": "Embark on a journey of trust (requires trust >= 80)",
|
||||
"targetScene": "secret_ending",
|
||||
"conditions": [
|
||||
{ "variable": "trust", "op": ">=", "value": 80 }
|
||||
@@ -260,7 +245,6 @@
|
||||
},
|
||||
{
|
||||
"text": "离开这里",
|
||||
"textEn": "Leave this place",
|
||||
"targetScene": "alone_ending"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user