Browse Source

[fixed] dead end in bouling

julzor 5 years ago
parent
commit
84ddd43ad6
1 changed files with 22 additions and 42 deletions
  1. 22 42
      locations/bouling.qsrc

+ 22 - 42
locations/bouling.qsrc

@@ -15,51 +15,31 @@ if $ARGS[0] = 'start' or $ARGS[0] = '':
 
 	act 'Leave':gt 'torgcentr'
 
-	if hour >= 8 and hour <= 20:
+	if hour >= 8 and hour <= 20 and money >= 300:
 		act 'Play (300 <b>₽</b>) (1:00)':
-			if money < 300:
-				'You don''t have enough money.'
-			else
-				menu_off = 1
-				money -= 300
-				minut += 60
-				boulvar = 0
-				boulingnav += rand(0, 3)
-				boulrand = rand(0, 9)
-
-				gs 'npcgeneratec', 0, 'Bowling Player', rand(18,40)
-				$boy[0] = $npclastgenerated
-				$boydesc[0] = $npc_usedname[$npclastgenerated]
-				gs 'npcgeneratec', 0, 'Bowling Player', rand(18,40)
-				$boy[1] = $npclastgenerated
-				$boydesc[1] = $npc_usedname[$npclastgenerated]
-				gs 'stat'
+			menu_off = 1
+			minut += 60
+			boulvar = 0
+			boulingnav += rand(0, 3)
+			boulrand = rand(0, 9)
+			gs 'npcgeneratec', 0, 'Bowling Player', rand(18,40)
+			$boy[0] = $npclastgenerated
+			$boydesc[0] = $npc_usedname[$npclastgenerated]
+			gs 'npcgeneratec', 0, 'Bowling Player', rand(18,40)
+			$boy[1] = $npclastgenerated
+			$boydesc[1] = $npc_usedname[$npclastgenerated]
+			gs 'stat'
 				
-				act 'Leave': gt 'bouling'
+			act 'Leave': gt 'bouling'
 				
-				if boulrand = 0:
-					cla
-					'You see two guys and they challenge you to a game.'
-					act 'Gamble (2000 <b>₽</b>)':boulvar = 1 & gt 'bouling', 'randwin'	
-				elseif boulrand = 1:
-					cla
-					'You meet two girls and they suggest challenging two guys to a game: Prize 5000 <b>₽</b>, lose and they have sex with you.'
-					act 'Play':boulvar = 2 & gt 'bouling', 'randwin'
-				elseif boulrand > 1:
-					cla
-					'You play a game.'
-				end
-			end
-		end
-
-		if money >= 300:
-			act 'Play for money (300 <b>₽</b>) (1:00)':
-				menu_off = 1
-				money -= 300
-				minut += 60
-				boulvar = 0
-				gs 'stat'
-				gt 'bouling', 'randwin'
+			if boulrand = 0:
+				'You see two guys and they challenge you to a game.'
+				act 'Gamble (2000 <b>₽</b>)':boulvar = 1 & gt 'bouling', 'randwin'	
+			elseif boulrand = 1:
+				'You meet two girls and they suggest challenging two guys to a game: Prize 5000 <b>₽</b>, lose and they have sex with you.'
+				act 'Play':boulvar = 2 & gt 'bouling', 'randwin'
+			elseif boulrand > 1:
+				gt 'bouling', 'randwin' 
 			end
 		end
 	end