From de0d049d60e79433ef44204e62d3dbe570f1d895 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 10 May 2023 14:50:20 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20support:=20relic=20config=20setID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/relic_affix.py | 4 +++- res_func/relic.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/models/relic_affix.py b/models/relic_affix.py index 3a6ba01..dbe9165 100644 --- a/models/relic_affix.py +++ b/models/relic_affix.py @@ -3,7 +3,7 @@ from typing import Optional, Dict from pydantic import BaseModel, root_validator -from models.enums import RelicAffix +from .enums import RelicAffix class SingleRelicAffix(BaseModel): @@ -22,6 +22,8 @@ class SingleRelicAffix(BaseModel): class RelicAffixAll(BaseModel): id: int + set_id: int + """ 套装ID """ main_affix_group: int sub_affix_group: int max_level: int diff --git a/res_func/relic.py b/res_func/relic.py index 3b62634..5443d76 100644 --- a/res_func/relic.py +++ b/res_func/relic.py @@ -21,6 +21,7 @@ async def fetch_all_relic(): for key, value in relic_data.items(): relic_affix_all = RelicAffixAll( id=int(key), + set_id=value["SetID"], main_affix_group=value["MainAffixGroup"], sub_affix_group=value["SubAffixGroup"], max_level=value["MaxLevel"],