Parcourir la source

Update 'locations/carF.qsrc'

[enhancement] - added an option to drive from Pav to St. Petersburg residential area or city center - added the appropriate logic and code - tested - carF module - spectre1viper
spectre1viper il y a 5 ans
Parent
commit
9e7505e2bb
1 fichiers modifiés avec 24 ajouts et 0 suppressions
  1. 24 0
      locations/carF.qsrc

+ 24 - 0
locations/carF.qsrc

@@ -178,6 +178,30 @@ if $ARGS[0] = 'salon':
 					end
 				end
 
+				if cardrive ! 1:
+					act 'Go to St. Petersburg''s residential area':
+						cla
+						minut += 90
+						benz -= 1
+						teh -= rand(3, 6)
+						cardrive = 1
+						'You drive for more than an hour on the highway before you get to St. Petersburg''s residential area.'
+						dynamic $enddrive
+					end
+				end
+
+				if cardrive ! 2:
+					act 'Go to St. Petersburg city center':
+						cla
+						minut += 80
+						benz -= 1
+						teh -= rand(3, 6)
+						cardrive = 2
+						'You drive for more than an hour on the highway before you get to St. Petersburg city center.'
+						dynamic $enddrive
+					end
+				end
+      
 				if cardrive ! 21:
 					act 'Go to the gas station':
 						cla