mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-14 12:27:26 +08:00
[Enhance] API for presents & character values
- Add API endpoints for presents - Change character value algorithm - Update character values (I forgot in v2.10.3)
This commit is contained in:
@@ -333,7 +333,8 @@ class ItemFactory:
|
||||
elif item_type == 'course_banner':
|
||||
return CourseBanner(self.c)
|
||||
else:
|
||||
raise InputError('The item type `%s` is wrong.' % item_type)
|
||||
raise InputError(
|
||||
f'The item type `{item_type}` is invalid.', api_error_code=-120)
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, d: dict, c=None):
|
||||
|
||||
Reference in New Issue
Block a user