Browse Source

Fix for cars and street events on the island as they were counting as the city center.

KevinSmarts 6 years ago
parent
commit
4b205303be
3 changed files with 27 additions and 3 deletions
  1. 14 0
      locations/carF
  2. 2 2
      locations/island
  3. 11 1
      locations/street_event

+ 14 - 0
locations/carF

@@ -22,6 +22,7 @@ $enddrive = {
 	if cardrive = 22:gt'road'
 	if cardrive = 23:gt'gadukino'
 	if cardrive = 24:gt'pavCommercial'
+	if cardrive = 25:gt'island'
 }
 
 if $ARGS[0] = 'start':
@@ -96,6 +97,7 @@ if $ARGS[0] = 'salon':
 	if cardrive = 19:'Through the windshield, you see the Station.'
 	if cardrive = 23:'Through the windshield, you see the huts of the village of Gadyukino.'
 	if cardrive = 24:'Through the windshield, you can see the Old Town.'
+	if cardrive = 25:'You cross one of the bridges that leads to the island.'
 
 	if prava = 0:'You don''t have a driver''s license.'
 
@@ -336,6 +338,18 @@ if $ARGS[0] = 'salon':
 				end
 			end
 
+			if cardrive ! 25 and cardrive < 20:
+				act 'Go to the island':
+					cla
+					minut += 15
+					benz -= 1
+					teh -= rand(1, 3)
+					cardrive = 25
+					'15 minutes later, you arrive at your destination.'
+					dynamic $enddrive
+				end
+			end
+
 			if cardrive ! 12:
 				act 'Go to the construction site':
 					cla

+ 2 - 2
locations/island

@@ -34,10 +34,10 @@ end
 'The University area of the city, the University, shops, clubs and the like that cater to the college kids dominate this area of the city. There is only three bridges onto and off the island, plus the metro line.'
 
 !call random events from [street_events], and display them before show location.
-gs'street_event','down' & if streetrand = -1:exit
+gs'street_event','island' & if streetrand = -1:exit
 if student > 0:act '<b>GO HOME</b> (University dorm)':gt 'dorm', 'start'
 
-if car > 0 and cardrive = 2:'In the parking stands your <a href="exec:GS ''carF'', ''start''"><<$car>></a>.'
+if car > 0 and cardrive = 25:'In the parking stands your <a href="exec:GS ''carF'', ''start''"><<$car>></a>.'
 
 act 'Wait':
 	cla

+ 11 - 1
locations/street_event

@@ -39,7 +39,7 @@ elseif $ARGS[0] = 'down':
 	streetev_hijack = 6
 	streetev_bf = 90
 	streetev_mistmeet = 20
-	if tanwork = 1 or student > 0:
+	if tanwork = 1:
 		streetev_home = 1
 		$streetev_home = 'near the entrance to your home'
 	end
@@ -73,6 +73,16 @@ elseif $ARGS[0] = 'pavCommercial':
 		streetev_home = 0
 		$streetev_home = 'on the high street'
 	end
+elseif $ARGS[0] = 'island':
+	$streetev_title = '<center><b>Island</b></center>'
+	streetev_rob = 1
+	streetev_hijack = 6
+	streetev_bf = 90
+	streetev_mistmeet = 20
+	if student > 0:
+		streetev_home = 1
+		$streetev_home = 'near the entrance to your dorm'
+	end
 else
 	$streetev_title = '<center><b>in dark</b></center>'
 	streetev_rape = 10