Improve localization(zh-CN) & overwrite GetRawOffensivePower & GetOffensivePower #77
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
got_a_kill - 在最常见的击杀信息中提高”ez“概率,让分支回复变得稍微不那么常见。
say_play_pos - 增加前后文两个位置。 旧 - 我将玩位置X;新 - 我准备打X号位。
(会日文,所以把日文这部分文本也做了相应修改。不懂俄语所以没动)
Localization.Get - 套了一层table验证,如果是table则基于种子多找一层,选取一个随机人格。以前的格式也能正常使用。
类似
旧: en = {welcome_msgs = {"1","2","3"}, "say_play_pos"="4","say_play_pos_2"="5"}
新: en = [{welcome_msgs = {"1","2","3"}, "say_play_pos"="4","say_play_pos_2"="5"},
{welcome_msgs = {"11","12","13"}, "say_play_pos"="14","say_play_pos_2"="15"}]
让同个语言可以塞多个人格,为下一步更新做点准备。
另外就是GetRawOffensivePower & GetOffensivePower的重写,这部分在Issue讨论了。GetOffensivePower如果获取不到技能cooldown,就只能做估算了。
虽然估计问题不大,但以上改动毕竟还没做测试,别急着合……