翻译错误#316
Merged
Merged
Conversation
Collaborator
|
应该是mzq那边的问题,当时直接搬过来的 |
Add EX equipment state save and restore modules
Lanly109
reviewed
Jul 12, 2026
|
|
||
| @name('保存ex状态') | ||
| @default(True) | ||
| @description('保存所有角色当前穿戴的普通EX装备状态,供恢复ex状态使用。数据保存在cache/modules/目录下,不影响账号配置。') |
| state = _normal_ex_equip_state(client) | ||
| equipped_cnt = sum(1 for slots in state.values() for serial_id in slots.values() if serial_id) | ||
| unit_cnt = sum(1 for slots in state.values() if any(slots.values())) | ||
| _save_ex_equip_state_cache(self, state) |
Collaborator
There was a problem hiding this comment.
这个函数没其他地方用到吧,放在类里函数而非全局函数
| from os import makedirs | ||
| from os.path import dirname | ||
| import json | ||
| cache_path = _ex_equip_state_cache_path(module) |
Collaborator
There was a problem hiding this comment.
请使用find_cache和save_cache,而不是自定义逻辑,_load_ex_equip_state_cache同理
Contributor
Author
|
为什么pull request会持续推送(是你迟迟不合并的问题吧)回头改 |
Add save/restore modules for normal EX equipment state
Add EX equip state save/restore module and register it in tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
是ai生成的不?
应该是翻译错误
神秘的环奈梦中告诉我这里有问题