[Bug fix] API song difficulty ETR

- Fix a but that some API cannot handle ETR difficulty.
- New character "Vita(Cadenza)"
- For Arcaea 5.5.0 / 5.5.6
This commit is contained in:
Lost-MSth
2024-04-01 16:41:15 +08:00
parent a05bb4854d
commit 02bf565ebd
6 changed files with 55 additions and 19 deletions

View File

@@ -12,7 +12,7 @@ class Config:
SONG_FILE_HASH_PRE_CALCULATE = True
GAME_API_PREFIX = '/desks/28' # str | list[str]
GAME_API_PREFIX = '/hanami/29' # str | list[str]
OLD_GAME_API_PREFIX = [] # str | list[str]
ALLOW_APPVERSION = [] # list[str]

View File

@@ -1,6 +1,6 @@
from .config_manager import Config
ARCAEA_SERVER_VERSION = 'v2.11.3.5'
ARCAEA_SERVER_VERSION = 'v2.11.3.8'
ARCAEA_LOG_DATBASE_VERSION = 'v1.1'

View File

@@ -75,8 +75,8 @@ class Song:
self.song_id = d['song_id']
self.name = d.get('name', '')
self.charts = [Chart(self.c, self.song_id, 0), Chart(self.c, self.song_id, 1), Chart(
self.c, self.song_id, 2), Chart(self.c, self.song_id, 3)]
for i in range(4):
self.c, self.song_id, 2), Chart(self.c, self.song_id, 3), Chart(self.c, self.song_id, 4)]
for i in range(5):
self.charts[i].defnum = -10
for chart in d['charts']:
self.charts[chart['difficulty']].defnum = round(