@@ -87,8 +87,7 @@ def _cmd_show_songs(self):
87
87
"""Display all songs in logic."""
88
88
indexes = self .get_available_ids ()
89
89
self .output (f"You Have { self .count_item (726999999 )} Performance Points, you need { self .ctx .preformance_points_needed } to unlock your goal." )
90
- if not indexes :
91
- self .output ("You do not have any Songs in Logic" )
90
+ self .output (f"You currently have { len (indexes )} songs in Logic" )
92
91
for i in indexes :
93
92
song = list (self .ctx .pairs .keys ())[i ]
94
93
beatmapset = self .ctx .pairs [song ]
@@ -97,6 +96,7 @@ def _cmd_show_songs(self):
97
96
def _cmd_show_all_songs (self ):
98
97
"""Displays all songs included in current generation."""
99
98
played_songs = self .get_played_songs ()
99
+ self .output (f"You have played { len (played_songs )} /{ len (self .ctx .pairs )- 1 } songs" )
100
100
for song in self .ctx .pairs :
101
101
beatmapset = self .ctx .pairs [song ]
102
102
self .output (f"{ song } : { beatmapset ['title' ]} (ID: { beatmapset ['id' ]} ) { '(passed)' if song in played_songs else '' } " )
@@ -148,6 +148,13 @@ def _cmd_get_last_scores(self, mode=''):
148
148
149
149
def _cmd_download (self , number = '' ):
150
150
"""Downloads the given song number in '/show_songs', or 'victory' for the goal song."""
151
+ if number .lower () == 'next' :
152
+ if len (self .get_available_ids ()) > 0 :
153
+ number = self .get_available_ids ()[0 ]+ 1
154
+ else :
155
+ self .output ("You have no songs to download" )
156
+ return
157
+
151
158
try :
152
159
song_number = int (number )- 1
153
160
except ValueError :
@@ -198,6 +205,9 @@ def get_played_ids(self):
198
205
def get_played_songs (self ):
199
206
# Gets the Song value of each Song the player has played
200
207
played_ids = self .get_played_ids ()
208
+ if (- 1 in played_ids ):
209
+ played_ids .remove (- 1 ) # Remove victory song from played songs as it was somehow showing up
210
+
201
211
played_songs = []
202
212
for played in played_ids :
203
213
played_songs .append (list (self .ctx .pairs .keys ())[played ])
0 commit comments