Browse Source

[added] Willpower-like actions for buying sports equipment in sportShop if you don't have enough money + added ice skates to the selection

Sicaa 4 years ago
parent
commit
b6e82de072
1 changed files with 22 additions and 3 deletions
  1. 22 3
      locations/sportShop.qsrc

+ 22 - 3
locations/sportShop.qsrc

@@ -53,7 +53,7 @@ if $ARGS[0] = 'start':
 	end
 
 	if skak = 0 and money >= 500:
-		act 'Buy skipping rope (500 <b>₽</b>)':
+		act 'Buy a skipping rope (500 <b>₽</b>)':
 			cla
 			minut += 5
 			money -= 500
@@ -61,10 +61,12 @@ if $ARGS[0] = 'start':
 
 			act 'Pick up a package':gt 'sportshop', 'start'
 		end
+	elseif skak = 0:
+		act 'Buy a skipping rope (<font color="red">500 <b>₽</b></font>)': '<br><font color="red">You don''t have enough money to buy that.</font>'
 	end
 
 	if obruch = 0 and money >= 1500:
-		act 'Buy hoop (1,500 <b>₽</b>)':
+		act 'Buy a hula hoop (1,500 <b>₽</b>)':
 			cla
 			minut += 5
 			money -= 1500
@@ -72,10 +74,12 @@ if $ARGS[0] = 'start':
 
 			act 'Pick up a package':gt 'sportshop', 'start'
 		end
+	elseif obruch = 0:
+		act 'Buy a hula hoop (<font color="red">1500 <b>₽</b></font>)': '<br><font color="red">You don''t have enough money to buy that.</font>'
 	end
 
 	if bookYog = 0 and money >= 1500:
-		act 'Buy benefits of yoga (1,500 <b>₽</b>)':
+		act 'Buy "Benifits of yoga" (1,500 <b>₽</b>)':
 			cla
 			minut += 5
 			money -= 1500
@@ -83,6 +87,21 @@ if $ARGS[0] = 'start':
 
 			act 'Pick up a package':gt 'sportshop', 'start'
 		end
+	elseif bookYog = 0:
+		act 'Buy "Benifits of yoga" (<font color="red">1500 <b>₽</b></font>)': '<br><font color="red">You don''t have enough money to buy that.</font>'
+	end
+	
+	if konki = 0 and money >= 3000:
+		act 'Buy some ice skates (3000 <b>₽</b>)':
+			cla
+			minut += 5
+			money -= 3000
+			konki = 1
+
+			act 'Pick up a package':gt 'sportshop', 'start'
+		end
+	elseif konki = 0:
+		act 'Buy some ice skates (<font color="red">3000 <b>₽</b></font>)': '<br><font color="red">You don''t have enough money to buy that.</font>'
 	end
 end