[Enhance][Bug Fix]

- For Arcaea 5.10.4
- Add support for the Link Play notification setting.
- Fix a bug that public rooms cannot be matched possibly if some players leave the room.
- Continue to fix the bug that the player cannot complete one course twice.
- Continue to fix the bug that users cannot change online settings.
This commit is contained in:
Lost-MSth
2024-09-27 00:28:56 +08:00
parent c52fda6f47
commit dc1ca344e5
10 changed files with 49 additions and 33 deletions

View File

@@ -1,6 +1,5 @@
from .error import NoData
from .item import ItemFactory
from .score import Score
from .song import Chart
@@ -40,7 +39,7 @@ class Course:
self.requirements: list = []
self.charts: list = [None, None, None, None]
self.items: list = None
self.items: list = []
def to_dict(self) -> dict:
if self.course_name is None:
@@ -282,15 +281,14 @@ class CoursePlay(UserCourse):
self.user_play.course_play_state += 1
from .score import Score
if Score.get_song_state(self.clear_type) > Score.get_song_state(self.user_play.clear_type):
self.clear_type = self.user_play.clear_type
self.user_play.update_play_state_for_course()
if self.user_play.course_play_state == 4:
self.user.select_user_about_stamina()
self.items = []
if not self.is_completed:
self.user.select_user_about_stamina()
self.select_course_item()
for i in self.items:
i.user_claim_item(self.user)