[Refactor][Bug fix] World mode & skills

- Code refactor for world mode
- Try to fix some skills to keep it same with the official server (especially `ayu_uncap`), and adjust the order of World Mode progress calculation (maybe still not right).
- Uncap Kanae

Note: not ready for Kanae's uncapping skill (I do not know its actual effect.)
This commit is contained in:
Lost-MSth
2024-01-13 15:14:54 +08:00
parent de701b4d1b
commit 746712718b
8 changed files with 379 additions and 264 deletions

View File

@@ -11,7 +11,7 @@ from .item import ItemCore
from .song import Chart
from .sql import Connect, Query, Sql
from .util import get_today_timestamp, md5
from .world import WorldPlay
from .world import WorldPlay, BeyondWorldPlay
class Score:
@@ -500,7 +500,8 @@ class UserPlay(UserScore):
# 世界模式判断
if self.is_world_mode:
self.world_play = WorldPlay(self.c, self.user, self)
self.world_play = WorldPlay(
self.c, self.user, self) if self.beyond_gauge == 0 else BeyondWorldPlay(self.c, self.user, self)
self.world_play.update()
# 课题模式判断