refactor buy and sell

This commit is contained in:
bridge
2026-01-05 23:52:38 +08:00
parent 6873746d29
commit 9f5ad04e92
7 changed files with 275 additions and 162 deletions

View File

@@ -184,3 +184,8 @@ def _load_elixirs() -> tuple[Dict[int, Elixir], Dict[str, List[Elixir]]]:
# 导出全局变量
elixirs_by_id, elixirs_by_name = _load_elixirs()
def get_elixirs_by_realm(realm: Realm) -> List[Elixir]:
"""获取指定境界的所有丹药"""
return [e for e in elixirs_by_id.values() if e.realm == realm]