MANSAI!

This commit is contained in:
wasneet 2025-05-03 11:20:47 +08:00
parent d8fdd6ccec
commit 2484db8670
7 changed files with 47 additions and 44 deletions

View File

@ -4,8 +4,7 @@ menuDesc: Not magic. Does many things.
@Check
name: Check
desc: 查看敌人信息。
不占用回合。
desc: 查看敌人信息。\n不占用回合。
menuDesc: Allows to see enemy info, does not use a turn in battle.
@Apprehend
@ -15,14 +14,12 @@ menuDesc: Attempts to capture the criminal and bring them back to the Dark Jail.
@NonLethalShot
name: 枪击制伏
desc: 伤害的同时
留敌人一血
desc: 伤害的同时\n留敌人一血
menuDesc: Shoots a rubber pellet that does low damage. Cannot kill, leaving the target with 1 HP.
@HealBell
name: 治疗铃音
desc: 回复些许
HP。
desc: 回复些许\nHP。
menuDesc: Casts a soothing magic bell, which heals allies. Scales with MAGIC.
@AxisSiren
@ -38,8 +35,7 @@ menuDesc: High damage. Executes enemies.\nCan only be used on those deserving Ju
@ShieldBarrier
name: 钻石护盾
menuDesc: Casts a diamond shaped barrier around the SOUL, preventing one hit of damage.
desc: 抵挡一次
攻击。
desc: 抵挡一次\n攻击。
@Foxfire
name: Foxfire

View File

@ -1,8 +1,7 @@
* Penceller和Eraserhead拦住了去路
* 闻起来像烧焦的橡胶。
* Penceller正试着削铅笔。
* Eraserhead想要调整眼镜
但它够不着。
* Eraserhead想要调整眼镜\n 但它够不着。
* Eraserhead的力量正在消散。
* Penceller的身体要裂开了。
* 一对铅笔拦住了去路!
@ -13,15 +12,9 @@
* 这仨在争论谁的铅笔更好。
* 俩木头脑袋拦住了去路!
* 通过防御可以积攒你的TP。
* 当你拥有足够的TP时
就可以使用[color=yellow]行动[/color]中的[color=yellow]逮捕[/color]
对敌人实行捕获。
* 但要注意,当逮捕敌人时,
他们会尝试逃脱。
* 血量越高的敌人将越容易逃脱。
* 使用Cole的[color=yellow]枪击制伏[/color]
可以削减敌人的血量,
同时可以防止他们逃脱。
* 当你拥有足够的TP时\n 就可以使用[color=yellow]行动[/color]中的[color=yellow]逮捕[/color]\n 对敌人实行捕获。
* 但要注意,当逮捕敌人时,\n 他们会尝试逃脱。\n* 血量越高的敌人将越容易逃脱。
* 使用Cole的[color=yellow]枪击制伏[/color]\n 可以削减敌人的血量,\n 同时可以防止他们逃脱。
* Kanako seems confused by this whole ordeal.
* Mopper and its cohort cleans the way!
* Smells like cleaning supplies.

View File

@ -3,17 +3,13 @@
* [NAME] casts Foxfire!
* Cole shot a rubber bullet at [TARGET]!
* You tell Eraserhead his style is lame.\n* He actually agrees with you.
* 你跟Eraserhead说别给自己太大压力。
* 他同意你的观点。
* [NAME]擦掉了Eraserhead头上的一些脏东西。
* 他看起来很高兴。
* 你跟Eraserhead说别给自己太大压力。\n* 他同意你的观点。
* [NAME]擦掉了Eraserhead头上的一些脏东西。\n* 他看起来很高兴。
* [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]想要削尖Penceller的铅笔。
* 他看起来很高兴。
* [NAME]想要削尖Penceller的铅笔。\n* 他看起来很高兴。
* [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.
* [NAME] used [ITEM]!
* You part encouraging words upon Kanako...\n* Her AT went up for this turn!

View File

@ -2199,7 +2199,7 @@ END
@KanakoDWSave7
[color=black].
>instend
>prompt:Are you@alright?:Come, let's@leave.
>prompt:你还好吗?:咱快走吧。
>promptredirect:KanakoDWSaveP1:KanakoDWSaveP2
END
@ -2406,7 +2406,7 @@ END
* 他看起来很强大...
>top
>p:KanakoOffended
>prompt:Flee:Fight
>prompt:逃跑:战斗
>promptredirect:ChaseEvent4A:ChaseEvent4B
END
@ -2503,7 +2503,7 @@ END
* C-Cole...
>top
>p:KanakoSurprise
>prompt:Jump Off:Stand Your@Ground
>prompt:一跃而下:坚守阵地
END
-----
@ -3671,7 +3671,7 @@ END
* 还能回到家里吗?
* 还能再见一面大家吗...
>p:KEEP
>prompt:We will@get back:I don't@know...
>prompt:肯定@回得去的:我不知道...
END
-----
@ -3786,7 +3786,7 @@ END
.
* ...
>p:KanakoOffended
>prompt:What is@it?:We won't@help you
>prompt:说来听听?:指定不帮
END
-----

View File

@ -1,12 +1,9 @@
* 有人在看着。
* 有人挡了你的路。
* 周围一个人都没有。
* ...但...
* 周围一个人都没有。\n* ...但...
* . . .
* 你想要查看,
但实体阻止了你。
* 你想要回头。
* 但你的身体无法动弹。
* 你想要查看,\n 但实体阻止了你。
* 你想要回头。\n* 但你的身体无法动弹。
* 前进
* 回头
* 查看

View File

@ -189,7 +189,7 @@ END
* 盲猜你又熬夜看电影了,
对吧?
>p:KanakoHappy
>prompt:Yes:No::Who are you?
>prompt:是这样:才不是::你谁啊?
>promptredirect:KanakoIntroP1:KanakoIntroP2::KanakoIntroP3
END
@ -296,7 +296,7 @@ END
.
* ...这周你...
>p:KanakoSad2
>prompt:Yeah...:What?
>prompt:是啊...:啥事?
END
-----
@ -360,7 +360,7 @@ END
* 别让时间白白浪费,
好吗...
>p:KanakoHappy
>prompt:Of course:No promises
>prompt:当然了:我不好说
>promptredirect:KanakoIntroCorridorP1:KanakoIntroCorridorP2
END

View File

@ -1,5 +1,6 @@
import os
import json
import hashlib
root_dir = os.path.dirname(os.path.abspath(__file__))
translate_dir = os.path.join(root_dir, 'translate')
@ -12,8 +13,8 @@ star_texts = load_translation('StarText.json')
desc_texts = load_translation('DescText.json')
other_texts = load_translation('OtherText.json')
block_texts = load_translation('BlockText.json')
choices_texts = load_translation('Choices.json') # 加载Choices.json
import hashlib
def text_to_id(text):
return hashlib.md5(text.encode('utf-8')).hexdigest()
@ -62,7 +63,17 @@ for root, dirs, files in os.walk(root_dir):
restored = restored.replace('/n', '\n')
new_lines.extend(restored.split('\n'))
block = []
new_lines.append(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)
else:
block.append(line)
if block:
@ -77,7 +88,17 @@ for root, dirs, files in os.walk(root_dir):
while i < len(lines):
line = lines[i].rstrip('\n')
if is_separator(line):
new_lines.append(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)
i += 1
continue
if line.startswith('*'):