Browse Source

Better message when an action can't be done

If the reason an action (busking, streaming, recording) can't be done is because the skills are too low, the message now doesn't say "You are too tired".
netuttki 7 months ago
parent
commit
f6e250206a
1 changed files with 8 additions and 3 deletions
  1. 8 3
      locations/music_actions.qsrc

+ 8 - 3
locations/music_actions.qsrc

@@ -167,7 +167,9 @@ end
 if $ARGS[0] = 'busking':
     *nl
     'With the weather being pleasant and sunny, there are groups of people moving around the streets. You could play some music, practice performing songs and maybe make some money too.'
-    if ml_time_left < 60:
+    if ml_performance['max_perform_minutes'] < 60:
+        act 'Start busking (<font color="red">You are not able to play for an hour yet.</font>)': '<br><font color="red">You don''t have the endurance yet to play for an hour.</font>'
+    elseif ml_time_left < 60:
         act 'Start busking (<font color="red">You are too tired</font>)': '<br><font color="red">You have played so much today, that your brain and hands are too tired to play a whole stream.</font>'
     elseif  will_cost ! 0:
         if will_cost <= pcs_willpwr:
@@ -196,6 +198,8 @@ if $ARGS[0] = 'stream_music':
         act 'Live stream (<font color="red">Already streamed today</font>)': '<br><font color="red">You already streamed today.</font>'
     elseif ml_not_alone = 1 and location_type = 'private' :
         act 'Live stream (<font color="red">You are not alone, can''t stream right now</font>)': '<br><font color="red">You are not alone in the room, which makes starting a stream impossible until they leave.</font>'
+    elseif ml_performance['max_perform_minutes'] < 60:
+        act 'Live stream (<font color="red">You are not able to play for an hour yet.</font>)': '<br><font color="red">You don''t have the endurance yet to play for an hour.</font>'
     elseif ml_time_left < 60:
         act 'Live stream (<font color="red">You are too tired</font>)': '<br><font color="red">You have played so much today, that your brain and hands are too tired to play a whole stream.</font>'    
     else
@@ -223,8 +227,9 @@ end
 !! 4. Computer based recording is removed for now, some changes are needed
 if $ARGS[0] = 'record_music':
     !! Recording music
-    
-    if ml_time_left < 30:
+    if ml_performance['max_perform_minutes'] < 30:
+        act 'Record a song (<font color="red">You are not able to play for half an hour yet.</font>)': '<br><font color="red">You don''t have the endurance yet to play for half an hour continuously.</font>'
+    elseif ml_time_left < 30:
         act 'Record a song (<font color="red">You are too tired</font>)': '<br><font color="red">You have played so much today, that your brain and hands are too tired to record anything right now.</font>'    
     elseif will_cost = 0:
             act 'Record a song with your phone (30 minutes)': gt 'music_onlinemusic', 'record_song'