Browse Source

[fixed] removed duplicates and changed < to <= to be the same across all train event calls

Sicaa 5 years ago
parent
commit
55eb73ae8e
2 changed files with 10 additions and 16 deletions
  1. 2 2
      locations/cityTrain.qsrc
  2. 8 14
      locations/train.qsrc

+ 2 - 2
locations/cityTrain.qsrc

@@ -198,7 +198,7 @@ if $ARGS[0] = 'village':
 	menu_off = 1
 	minut += 25
 	if rand(1, 100) <= 10: gt 'train_incidental', 'events'
-	if rand(1, 100) < 20: gt 'train', 'events'
+	if rand(1, 100) <= 20: gt 'train', 'events'
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
 	'After 25 minutes, the train stops at the small station near the village of Gadukino.'
@@ -216,7 +216,7 @@ if $ARGS[0] = 'oldtown':
 	if rand(1, 100) < 15: gt 'train', 'private'
 	if rand(1, 100) < 30: gt 'train', 'Gopnik'
 	if rand(1, 100) <= 10: gt 'train_incidental', 'events'
-	if rand(1, 100) < 20: gt 'train', 'events'
+	if rand(1, 100) <= 20: gt 'train', 'events'
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/pushplat.jpg" ></center>'
 	'After 35 minutes, the train stops at old platform by the old town of Pushkin. Famous for its extensive park and old historic buildings, the locals are known to be eccentric but that adds to the charm.'

+ 8 - 14
locations/train.qsrc

@@ -134,7 +134,7 @@ if $ARGS[0] = 'communal_village':
 	$metka = 'village'
 	minut += 10
 	menu_off = 1
-	if rand(1, 100) < 20: gt 'train', 'events'
+	if rand(1, 100) <= 20: gt 'train', 'events'
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
 	'After 10 minutes, the train stops at the small station near the village of Gadukino.'
@@ -150,7 +150,7 @@ if $ARGS[0] = 'communal_oldtown':
 	minut += 20
 	menu_off = 1
 	if rand(1, 100) <= 10: gt 'train_incidental', 'events'
-	if rand(1, 100) < 20: gt 'train', 'events'
+	if rand(1, 100) <= 20: gt 'train', 'events'
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/pushplat.jpg" ></center>'
 	'After 20 minutes, the train stops at old platform by the old town of Pushkin. Famous for its extensive park and old historic buildings, the locals are known to be eccentric but that adds to the charm.'
@@ -166,7 +166,7 @@ if $ARGS[0] = 'communal_pavlovsk':
 	minut += 25
 	menu_off = 1
 	if rand(1, 100) <= 20: gt 'train_incidental', 'events'
-	if rand(1, 100) < 20: gt 'train', 'events'
+	if rand(1, 100) <= 20: gt 'train', 'events'
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
 	'After 5 minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
@@ -284,8 +284,6 @@ if $ARGS[0] = 'village_centre':
 	if rand(1, 100) <= 10: gt 'train_incidental', 'events'
 	if rand(1, 100) <= 20: gt 'train', 'events'
 	gs 'stat'
-	if rand(1, 100) <= 10: gt 'train_incidental', 'events'
-	if rand(1, 100) <= 20: gt 'train', 'events'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
 	'After 25 minutes, the train stops at the St. Petersburg city center station. The large office blocks and shopping centers fill your view.'
 	act 'Get off the train':
@@ -302,8 +300,6 @@ if $ARGS[0] = 'village_ind':
 	if rand(1, 100) <= 10: gt 'train_incidental', 'events'
 	if rand(1, 100) <= 20: gt 'train', 'events'
 	gs 'stat'
-	if rand(1, 100) <= 10: gt 'train_incidental', 'events'
-	if rand(1, 100) <= 20: gt 'train', 'events'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
 	'After 20 minutes, the train stops at the St. Petersburg city industrial area station.'
 	act 'Get off the train':
@@ -317,9 +313,8 @@ if $ARGS[0] = 'village_communal':
 	$metka = 'communal'
 	minut += 10
 	menu_off = 1
-	if rand(1, 100) < 20: gt 'train', 'events'
+	if rand(1, 100) <= 20: gt 'train', 'events'
 	gs 'stat'
-	if rand(1, 100) < 20: gt 'train', 'events'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
 	'After 10 minutes you arrive at an old railway platform near the communal village.'
 	act 'Get off the train':
@@ -333,9 +328,8 @@ if $ARGS[0] = 'village_oldtown':
 	$metka = 'oldtown'
 	minut += 10
 	menu_off = 1
-	if rand(1, 100) < 20: gt 'train', 'events'
+	if rand(1, 100) <= 20: gt 'train', 'events'
 	gs 'stat'
-	if rand(1, 100) < 20: gt 'train', 'events'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/pushplat.jpg" ></center>'
 	'After 10 minutes, the train stops at old platform by the old town of Pushkin. Famous for its extensive park and old historic buildings, the locals are known to be eccentric but that adds to the charm.'
 	act 'Get off the train':
@@ -353,7 +347,7 @@ if $ARGS[0] = 'village_pavlovsk':
 	minut += 15
 	menu_off = 1
 	if rand(1, 100) <= 20: gt 'train_incidental', 'events'
-	if rand(1, 100) < 20: gt 'train', 'events'
+	if rand(1, 100) <= 20: gt 'train', 'events'
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
 	'After 15 minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
@@ -514,7 +508,7 @@ if $ARGS[0] = 'oldtown_village':
 	$metka = 'village'
 	minut += 10
 	menu_off = 1
-	if rand(1, 100) < 20: gt 'train', 'events'
+	if rand(1, 100) <= 20: gt 'train', 'events'
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
 	'After 10 minutes, the train stops at the small station near the village of Gadukino.'
@@ -530,7 +524,7 @@ if $ARGS[0] = 'oldtown_pavlovsk':
 	minut += 5
 	menu_off = 1
 	if rand(1, 100) <= 20: gt 'train_incidental', 'events'
-	if rand(1, 100) < 20: gt 'train', 'events'
+	if rand(1, 100) <= 20: gt 'train', 'events'
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
 	'After 5 minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'