Browse Source

[added] uniform presentation of transportation time by adding both time and money costs at the end of the options

anjuna krokus 9 months ago
parent
commit
b3bdf6456c
2 changed files with 8 additions and 7 deletions
  1. 5 5
      locations/metro.qsrc
  2. 3 2
      locations/transport_functions.qsrc

+ 5 - 5
locations/metro.qsrc

@@ -45,7 +45,7 @@ if $ARGS[0] = 'start':
 	
 	if money >= 16:
 		if $loc ! 'city_residential':
-			act 'Go to the Residential Area (16 <b>₽</b>)':
+			act 'Go to the Residential Area (00:10 - 16 <b>₽</b>)':
 				$loc = 'city_residential'
 				$loc_arg = ''
 				money -= 16
@@ -55,7 +55,7 @@ if $ARGS[0] = 'start':
 		end
 
 		if $loc ! 'city_center':
-			act 'Go to the City Center (16 <b>₽</b>)':
+			act 'Go to the City Center (00:10 - 16 <b>₽</b>)':
 				$loc = 'city_center'
 				$loc_arg = ''
 				money -= 16
@@ -65,7 +65,7 @@ if $ARGS[0] = 'start':
 		end
 
 		if $loc ! 'city_industrial':
-			act 'Go to the City Industrial Region (16 <b>₽</b>)':
+			act 'Go to the City Industrial Region (00:10 - 16 <b>₽</b>)':
 				$loc = 'city_industrial'
 				$loc_arg = ''
 				money -= 16
@@ -75,7 +75,7 @@ if $ARGS[0] = 'start':
 		end
 
 		if $loc ! 'city_suburbs':
-			act 'Go to the City Suburbs (16 <b>₽</b>)':
+			act 'Go to the City Suburbs (00:10 - 16 <b>₽</b>)':
 				$loc = 'city_suburbs'
 				$loc_arg = 'start'
 				money -= 16
@@ -85,7 +85,7 @@ if $ARGS[0] = 'start':
 		end
 
 		if $loc ! 'city_island':
-			act 'Go to Vasilyevsky Island (16 <b>₽</b>)':
+			act 'Go to Vasilyevsky Island (00:10 - 16 <b>₽</b>)':
 				$loc = 'city_island'
 				$loc_arg = ''
 				money -= 16

+ 3 - 2
locations/transport_functions.qsrc

@@ -70,11 +70,12 @@ end
 ! $ARGS[3] = destination name
 if $ARGS[0] = 'set_train_ticket':
 	temp_price = func('transport_functions', 'get_train_price', $ARGS[1], $ARGS[2])
+	$temp_time = func('transport_functions', 'display_train_timecost', $ARGS[1], $ARGS[2])
 
 	if money < ARGS[1]:
-		dynamic 'act ''Buy a ticket to <<$ARGS[3]>> (<font color="red"><<temp_price>> <b>₽</b></font>)'': ''<br><font color="red">You don''t have enough money for a ticket to <<$ARGS[3]>>'' '
+		dynamic 'act ''Buy a ticket to <<$ARGS[3]>> (<font color="red"><<$temp_time>> - <<temp_price>> <b>₽</b></font>)'': ''<br><font color="red">You don''t have enough money for a ticket to <<$ARGS[3]>>'' '
 	else
-		dynamic 'act ''Buy a ticket to <<$ARGS[3]>> (<<temp_price>> <b>₽</b>)'':
+		dynamic 'act ''Buy a ticket to <<$ARGS[3]>> (<<$temp_time>> - <<temp_price>> <b>₽</b>)'':
 				money -= <<temp_price>>
 				menu_off = 1
 				gt ''train'', ''<<$ARGS[1]>>_<<$ARGS[2]>>''