MANSAI!
This commit is contained in:
parent
d8fdd6ccec
commit
2484db8670
@ -4,8 +4,7 @@ menuDesc: Not magic. Does many things.
|
|||||||
|
|
||||||
@Check
|
@Check
|
||||||
name: Check
|
name: Check
|
||||||
desc: 查看敌人信息。
|
desc: 查看敌人信息。\n不占用回合。
|
||||||
不占用回合。
|
|
||||||
menuDesc: Allows to see enemy info, does not use a turn in battle.
|
menuDesc: Allows to see enemy info, does not use a turn in battle.
|
||||||
|
|
||||||
@Apprehend
|
@Apprehend
|
||||||
@ -15,14 +14,12 @@ menuDesc: Attempts to capture the criminal and bring them back to the Dark Jail.
|
|||||||
|
|
||||||
@NonLethalShot
|
@NonLethalShot
|
||||||
name: 枪击制伏
|
name: 枪击制伏
|
||||||
desc: 伤害的同时
|
desc: 伤害的同时\n留敌人一血
|
||||||
留敌人一血
|
|
||||||
menuDesc: Shoots a rubber pellet that does low damage. Cannot kill, leaving the target with 1 HP.
|
menuDesc: Shoots a rubber pellet that does low damage. Cannot kill, leaving the target with 1 HP.
|
||||||
|
|
||||||
@HealBell
|
@HealBell
|
||||||
name: 治疗铃音
|
name: 治疗铃音
|
||||||
desc: 回复些许
|
desc: 回复些许\nHP。
|
||||||
HP。
|
|
||||||
menuDesc: Casts a soothing magic bell, which heals allies. Scales with MAGIC.
|
menuDesc: Casts a soothing magic bell, which heals allies. Scales with MAGIC.
|
||||||
|
|
||||||
@AxisSiren
|
@AxisSiren
|
||||||
@ -38,8 +35,7 @@ menuDesc: High damage. Executes enemies.\nCan only be used on those deserving Ju
|
|||||||
@ShieldBarrier
|
@ShieldBarrier
|
||||||
name: 钻石护盾
|
name: 钻石护盾
|
||||||
menuDesc: Casts a diamond shaped barrier around the SOUL, preventing one hit of damage.
|
menuDesc: Casts a diamond shaped barrier around the SOUL, preventing one hit of damage.
|
||||||
desc: 抵挡一次
|
desc: 抵挡一次\n攻击。
|
||||||
攻击。
|
|
||||||
|
|
||||||
@Foxfire
|
@Foxfire
|
||||||
name: Foxfire
|
name: Foxfire
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
* Penceller和Eraserhead拦住了去路!
|
* Penceller和Eraserhead拦住了去路!
|
||||||
* 闻起来像烧焦的橡胶。
|
* 闻起来像烧焦的橡胶。
|
||||||
* Penceller正试着削铅笔。
|
* Penceller正试着削铅笔。
|
||||||
* Eraserhead想要调整眼镜,
|
* Eraserhead想要调整眼镜,\n 但它够不着。
|
||||||
但它够不着。
|
|
||||||
* Eraserhead的力量正在消散。
|
* Eraserhead的力量正在消散。
|
||||||
* Penceller的身体要裂开了。
|
* Penceller的身体要裂开了。
|
||||||
* 一对铅笔拦住了去路!
|
* 一对铅笔拦住了去路!
|
||||||
@ -13,15 +12,9 @@
|
|||||||
* 这仨在争论谁的铅笔更好。
|
* 这仨在争论谁的铅笔更好。
|
||||||
* 俩木头脑袋拦住了去路!
|
* 俩木头脑袋拦住了去路!
|
||||||
* 通过防御可以积攒你的TP。
|
* 通过防御可以积攒你的TP。
|
||||||
* 当你拥有足够的TP时,
|
* 当你拥有足够的TP时,\n 就可以使用[color=yellow]行动[/color]中的[color=yellow]逮捕[/color]\n 对敌人实行捕获。
|
||||||
就可以使用[color=yellow]行动[/color]中的[color=yellow]逮捕[/color]
|
* 但要注意,当逮捕敌人时,\n 他们会尝试逃脱。\n* 血量越高的敌人将越容易逃脱。
|
||||||
对敌人实行捕获。
|
* 使用Cole的[color=yellow]枪击制伏[/color]\n 可以削减敌人的血量,\n 同时可以防止他们逃脱。
|
||||||
* 但要注意,当逮捕敌人时,
|
|
||||||
他们会尝试逃脱。
|
|
||||||
* 血量越高的敌人将越容易逃脱。
|
|
||||||
* 使用Cole的[color=yellow]枪击制伏[/color]
|
|
||||||
可以削减敌人的血量,
|
|
||||||
同时可以防止他们逃脱。
|
|
||||||
* Kanako seems confused by this whole ordeal.
|
* Kanako seems confused by this whole ordeal.
|
||||||
* Mopper and its cohort cleans the way!
|
* Mopper and its cohort cleans the way!
|
||||||
* Smells like cleaning supplies.
|
* Smells like cleaning supplies.
|
||||||
|
@ -3,17 +3,13 @@
|
|||||||
* [NAME] casts Foxfire!
|
* [NAME] casts Foxfire!
|
||||||
* Cole shot a rubber bullet at [TARGET]!
|
* Cole shot a rubber bullet at [TARGET]!
|
||||||
* You tell Eraserhead his style is lame.\n* He actually agrees with you.
|
* You tell Eraserhead his style is lame.\n* He actually agrees with you.
|
||||||
* 你跟Eraserhead说别给自己太大压力。
|
* 你跟Eraserhead说别给自己太大压力。\n* 他同意你的观点。
|
||||||
* 他同意你的观点。
|
* [NAME]擦掉了Eraserhead头上的一些脏东西。\n* 他看起来很高兴。
|
||||||
* [NAME]擦掉了Eraserhead头上的一些脏东西。
|
|
||||||
* 他看起来很高兴。
|
|
||||||
* [NAME] tried again to rub Eraserhead's head,\n\tbut it seems he don't want any more.
|
* [NAME] tried again to rub Eraserhead's head,\n\tbut it seems he don't want any more.
|
||||||
* [NAME] attempted to sharpen Penceller's pencil.\n* He's insulted that you even dare suggest that.
|
* [NAME] attempted to sharpen Penceller's pencil.\n* He's insulted that you even dare suggest that.
|
||||||
* [NAME]想要削尖Penceller的铅笔。
|
* [NAME]想要削尖Penceller的铅笔。\n* 他看起来很高兴。
|
||||||
* 他看起来很高兴。
|
|
||||||
* [NAME] attempted to sharpen Penceller's pencil,\n\tbut he wasn't having none of it.
|
* [NAME] attempted to sharpen Penceller's pencil,\n\tbut he wasn't having none of it.
|
||||||
* 你跟Penceller说你想跟他交朋友。
|
* 你跟Penceller说你想跟他交朋友。\n* 他好像认为这个点子不错。
|
||||||
* 他好像认为这个点子不错。
|
|
||||||
* You tell Penceller his drawings suck.\n* He is deeply hurt by this.
|
* You tell Penceller his drawings suck.\n* He is deeply hurt by this.
|
||||||
* [NAME] used [ITEM]!
|
* [NAME] used [ITEM]!
|
||||||
* You part encouraging words upon Kanako...\n* Her AT went up for this turn!
|
* You part encouraging words upon Kanako...\n* Her AT went up for this turn!
|
||||||
|
@ -2199,7 +2199,7 @@ END
|
|||||||
@KanakoDWSave7
|
@KanakoDWSave7
|
||||||
[color=black].
|
[color=black].
|
||||||
>instend
|
>instend
|
||||||
>prompt:Are you@alright?:Come, let's@leave.
|
>prompt:你还好吗?:咱快走吧。
|
||||||
>promptredirect:KanakoDWSaveP1:KanakoDWSaveP2
|
>promptredirect:KanakoDWSaveP1:KanakoDWSaveP2
|
||||||
END
|
END
|
||||||
|
|
||||||
@ -2406,7 +2406,7 @@ END
|
|||||||
* 他看起来很强大...
|
* 他看起来很强大...
|
||||||
>top
|
>top
|
||||||
>p:KanakoOffended
|
>p:KanakoOffended
|
||||||
>prompt:Flee:Fight
|
>prompt:逃跑:战斗
|
||||||
>promptredirect:ChaseEvent4A:ChaseEvent4B
|
>promptredirect:ChaseEvent4A:ChaseEvent4B
|
||||||
END
|
END
|
||||||
|
|
||||||
@ -2503,7 +2503,7 @@ END
|
|||||||
* C-Cole...
|
* C-Cole...
|
||||||
>top
|
>top
|
||||||
>p:KanakoSurprise
|
>p:KanakoSurprise
|
||||||
>prompt:Jump Off:Stand Your@Ground
|
>prompt:一跃而下:坚守阵地
|
||||||
END
|
END
|
||||||
|
|
||||||
-----
|
-----
|
||||||
@ -3671,7 +3671,7 @@ END
|
|||||||
* 还能回到家里吗?
|
* 还能回到家里吗?
|
||||||
* 还能再见一面大家吗...?
|
* 还能再见一面大家吗...?
|
||||||
>p:KEEP
|
>p:KEEP
|
||||||
>prompt:We will@get back:I don't@know...
|
>prompt:肯定@回得去的:我不知道...
|
||||||
END
|
END
|
||||||
|
|
||||||
-----
|
-----
|
||||||
@ -3786,7 +3786,7 @@ END
|
|||||||
.
|
.
|
||||||
* ...
|
* ...
|
||||||
>p:KanakoOffended
|
>p:KanakoOffended
|
||||||
>prompt:What is@it?:We won't@help you
|
>prompt:说来听听?:指定不帮
|
||||||
END
|
END
|
||||||
|
|
||||||
-----
|
-----
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
* 有人在看着。
|
* 有人在看着。
|
||||||
* 有人挡了你的路。
|
* 有人挡了你的路。
|
||||||
* 周围一个人都没有。
|
* 周围一个人都没有。\n* ...但...
|
||||||
* ...但...
|
|
||||||
* . . .
|
* . . .
|
||||||
* 你想要查看,
|
* 你想要查看,\n 但实体阻止了你。
|
||||||
但实体阻止了你。
|
* 你想要回头。\n* 但你的身体无法动弹。
|
||||||
* 你想要回头。
|
|
||||||
* 但你的身体无法动弹。
|
|
||||||
* 前进
|
* 前进
|
||||||
* 回头
|
* 回头
|
||||||
* 查看
|
* 查看
|
@ -189,7 +189,7 @@ END
|
|||||||
* 盲猜你又熬夜看电影了,
|
* 盲猜你又熬夜看电影了,
|
||||||
对吧?
|
对吧?
|
||||||
>p:KanakoHappy
|
>p:KanakoHappy
|
||||||
>prompt:Yes:No::Who are you?
|
>prompt:是这样:才不是::你谁啊?
|
||||||
>promptredirect:KanakoIntroP1:KanakoIntroP2::KanakoIntroP3
|
>promptredirect:KanakoIntroP1:KanakoIntroP2::KanakoIntroP3
|
||||||
END
|
END
|
||||||
|
|
||||||
@ -296,7 +296,7 @@ END
|
|||||||
.
|
.
|
||||||
* ...这周你...
|
* ...这周你...
|
||||||
>p:KanakoSad2
|
>p:KanakoSad2
|
||||||
>prompt:Yeah...:What?
|
>prompt:是啊...:啥事?
|
||||||
END
|
END
|
||||||
|
|
||||||
-----
|
-----
|
||||||
@ -360,7 +360,7 @@ END
|
|||||||
* 别让时间白白浪费,
|
* 别让时间白白浪费,
|
||||||
好吗...?
|
好吗...?
|
||||||
>p:KanakoHappy
|
>p:KanakoHappy
|
||||||
>prompt:Of course:No promises
|
>prompt:当然了:我不好说
|
||||||
>promptredirect:KanakoIntroCorridorP1:KanakoIntroCorridorP2
|
>promptredirect:KanakoIntroCorridorP1:KanakoIntroCorridorP2
|
||||||
END
|
END
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
|
import hashlib
|
||||||
|
|
||||||
root_dir = os.path.dirname(os.path.abspath(__file__))
|
root_dir = os.path.dirname(os.path.abspath(__file__))
|
||||||
translate_dir = os.path.join(root_dir, 'translate')
|
translate_dir = os.path.join(root_dir, 'translate')
|
||||||
@ -12,8 +13,8 @@ star_texts = load_translation('StarText.json')
|
|||||||
desc_texts = load_translation('DescText.json')
|
desc_texts = load_translation('DescText.json')
|
||||||
other_texts = load_translation('OtherText.json')
|
other_texts = load_translation('OtherText.json')
|
||||||
block_texts = load_translation('BlockText.json')
|
block_texts = load_translation('BlockText.json')
|
||||||
|
choices_texts = load_translation('Choices.json') # 加载Choices.json
|
||||||
|
|
||||||
import hashlib
|
|
||||||
def text_to_id(text):
|
def text_to_id(text):
|
||||||
return hashlib.md5(text.encode('utf-8')).hexdigest()
|
return hashlib.md5(text.encode('utf-8')).hexdigest()
|
||||||
|
|
||||||
@ -62,6 +63,16 @@ for root, dirs, files in os.walk(root_dir):
|
|||||||
restored = restored.replace('/n', '\n')
|
restored = restored.replace('/n', '\n')
|
||||||
new_lines.extend(restored.split('\n'))
|
new_lines.extend(restored.split('\n'))
|
||||||
block = []
|
block = []
|
||||||
|
# 处理>prompt:行
|
||||||
|
if line.startswith('>prompt:'):
|
||||||
|
content_part = line[len('>prompt:'):].strip()
|
||||||
|
key_text = content_part.replace(':', '/n')
|
||||||
|
id_ = text_to_id(key_text)
|
||||||
|
translated_content = choices_texts.get(id_, key_text)
|
||||||
|
new_content = translated_content.replace('/n', ':')
|
||||||
|
new_line = f">prompt:{new_content}"
|
||||||
|
new_lines.append(new_line)
|
||||||
|
else:
|
||||||
new_lines.append(line)
|
new_lines.append(line)
|
||||||
else:
|
else:
|
||||||
block.append(line)
|
block.append(line)
|
||||||
@ -77,6 +88,16 @@ for root, dirs, files in os.walk(root_dir):
|
|||||||
while i < len(lines):
|
while i < len(lines):
|
||||||
line = lines[i].rstrip('\n')
|
line = lines[i].rstrip('\n')
|
||||||
if is_separator(line):
|
if is_separator(line):
|
||||||
|
# 处理>prompt:行
|
||||||
|
if line.startswith('>prompt:'):
|
||||||
|
content_part = line[len('>prompt:'):].strip()
|
||||||
|
key_text = content_part.replace(':', '/n')
|
||||||
|
id_ = text_to_id(key_text)
|
||||||
|
translated_content = choices_texts.get(id_, key_text)
|
||||||
|
new_content = translated_content.replace('/n', ':')
|
||||||
|
new_line = f">prompt:{new_content}"
|
||||||
|
new_lines.append(new_line)
|
||||||
|
else:
|
||||||
new_lines.append(line)
|
new_lines.append(line)
|
||||||
i += 1
|
i += 1
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user