Browse Source

[fixed] Race results on stat page a little out of date and not very clear

Kevin_Smarts 2 weeks ago
parent
commit
f95623183e
1 changed files with 12 additions and 8 deletions
  1. 12 8
      locations/obj_din.qsrc

+ 12 - 8
locations/obj_din.qsrc

@@ -712,14 +712,18 @@ if $ARGS[0] = 'stats':
 		*nl
 	end
 
-	if runnerQW['races_ran'] > 0: 'You have run in <<runnerQW[''races_ran'']>> races'
-	if runnerQW['pav_wins1'] >= 1: 'You have <<runnerQW[''pav_wins1'']/3>> trophies from local racing competitions'
-	if runnerQW['bronze_medals'] > 0: '<<runnerQW[''bronze_medals'']>> - bronze medals for running'
-	if runnerQW['silver_medals'] > 0: '<<runnerQW[''silver_medals'']>> - silver medals for running'
-	if runnerQW['gold_medals'] > 0: '<<runnerQW[''gold_medals'']>> - gold medals for running'
-	if runnerQW['champ_bronze'] > 0: '<<runnerQW[''champ_bronze'']>> times bronze medalist at the St. Petersburg Track Championship'
-	if runnerQW['champ_silver'] > 0: '<<runnerQW[''champ_silver'']>> times silver medalist at the St. Petersburg Track Championship'
-	if runnerQW['champ_gold'] > 0: '<<runnerQW[''champ_gold'']>> times St. Petersburg Track Champion.'
+	if runnerQW['races_ran'] > 0: 'You ran in <<runnerQW[''races_ran'']>> competitive race' + iif(runnerQW[''races_ran''] = 1, '','s')
+	if runnerQW['pav_wins2'] >= 3:
+		'You have won the school race trophy twice'
+	elseif runnerQW['pav_wins1'] >= 3:
+		'You have won a school race trophy'
+	end
+	if runnerQW['bronze_medals'] > 0: 'As a runner you have won <<runnerQW[''bronze_medals'']>> bronze medal' + iif(runnerQW[''bronze_medals''] = 1, '','s')
+	if runnerQW['silver_medals'] > 0: 'As a runner you have won <<runnerQW[''silver_medals'']>> silver medal' + iif(runnerQW[''silver_medals''] = 1, '','s')
+	if runnerQW['gold_medals'] > 0: 'As a runner you have won <<runnerQW[''gold_medals'']>> gold medal' + iif(runnerQW[''gold_medals''] = 1, '','s')
+	if runnerQW['bronze_medals'] > 0: 'In the St. Petersburg Track Championship race you have won <<runnerQW[''champ_bronze'']>> bronze medal' + iif(runnerQW[''champ_bronze''] = 1, '','s')
+	if runnerQW['champ_silver'] > 0: 'In the St. Petersburg Track Championship race you have won <<runnerQW[''champ_silver'']>> silver medal' + iif(runnerQW[''champ_silver''] = 1, '','s')
+	if runnerQW['champ_gold'] > 0: 'In the St. Petersburg Track Championship race you have won <<runnerQW[''champ_gold'']>> gold medal' + iif(runnerQW[''champ_gold''] = 1, '','s')
 	if runnerQW['prof_stage'] > 0:
 		if runnerQW['prof_stage'] = 1: 'You''re registered for a semi-professional''s race, in the junior squad'
 		if runnerQW['prof_stage'] = 2: 'You''re registered for a semi-professional''s race, in the veteran squad'