diff --git a/gsuid_core/utils/api/ambr/api.py b/gsuid_core/utils/api/ambr/api.py index 97c35e6..d054fda 100644 --- a/gsuid_core/utils/api/ambr/api.py +++ b/gsuid_core/utils/api/ambr/api.py @@ -1,14 +1,14 @@ AMBR_BASE_URL = 'https://gi.yatta.moe' AMBR_EVENT_URL = AMBR_BASE_URL + '/assets/data/event.json' -AMBR_CHAR_URL = AMBR_BASE_URL + '/v2/chs/avatar/{}?vh=32F2' -AMBR_WEAPON_URL = AMBR_BASE_URL + '/v2/CHS/weapon/{}?vh=32F6' -AMBR_BOOK_URL = AMBR_BASE_URL + '/v2/chs/book?vh=34F5' -AMBR_BOOK_DETAILS_URL = AMBR_BASE_URL + '/v2/CHS/book/{}?vh=34F5' -AMBR_BOOK_DATA_URL = AMBR_BASE_URL + '/v2/CHS/readable/Book{}?vh=34F5' -AMBR_MONSTER_URL = AMBR_BASE_URL + '/v2/chs/monster/{}?vh=37F4' -AMBR_GCG_LIST_URL = AMBR_BASE_URL + '/v2/chs/gcg?vh=37F4' -AMBR_GCG_DETAIL = AMBR_BASE_URL + '/v2/chs/gcg/{}?vh=37F4' -AMBR_MONSTER_LIST = AMBR_BASE_URL + '/v2/chs/monster?vh=37F4' +AMBR_CHAR_URL = AMBR_BASE_URL + '/api/v2/chs/avatar/{}?vh=32F2' +AMBR_WEAPON_URL = AMBR_BASE_URL + '/api/v2/CHS/weapon/{}?vh=32F6' +AMBR_BOOK_URL = AMBR_BASE_URL + '/api/v2/chs/book?vh=34F5' +AMBR_BOOK_DETAILS_URL = AMBR_BASE_URL + '/api/v2/CHS/book/{}?vh=34F5' +AMBR_BOOK_DATA_URL = AMBR_BASE_URL + '/api/v2/CHS/readable/Book{}?vh=34F5' +AMBR_MONSTER_URL = AMBR_BASE_URL + '/api/v2/chs/monster/{}?vh=37F4' +AMBR_GCG_LIST_URL = AMBR_BASE_URL + '/api/v2/chs/gcg?vh=37F4' +AMBR_GCG_DETAIL = AMBR_BASE_URL + '/api/v2/chs/gcg/{}?vh=37F4' +AMBR_MONSTER_LIST = AMBR_BASE_URL + '/api/v2/chs/monster?vh=37F4' AMBR_ICON_URL = AMBR_BASE_URL + '/assets/UI' AMBR_MONSTER_ICON_URL = f'{AMBR_ICON_URL}/monster/' AMBR_DAILY_URL = AMBR_BASE_URL + '/api/v2/chs/dailyDungeon?vh=37F4' diff --git a/gsuid_core/utils/image/image_tools.py b/gsuid_core/utils/image/image_tools.py index 07cbcad..3371a97 100644 --- a/gsuid_core/utils/image/image_tools.py +++ b/gsuid_core/utils/image/image_tools.py @@ -6,12 +6,12 @@ from typing import Tuple, Union, Optional import httpx from httpx import get -from utils.fonts.fonts import core_font from PIL import Image, ImageDraw, ImageFont, ImageFilter from gsuid_core.models import Event from gsuid_core.utils.image.utils import sget from gsuid_core.data_store import get_res_path +from gsuid_core.utils.fonts.fonts import core_font TEXT_PATH = Path(__file__).parent / 'texture2d' BG_PATH = Path(__file__).parents[1] / 'default_bg'