Ver Fonte

[fixed] Missed a bit in the sexshop- card code and added a stat update to clothing so money balance display is updated.

KevinSmarts há 5 anos atrás
pai
commit
cf6a27a471
2 ficheiros alterados com 106 adições e 52 exclusões
  1. 2 0
      locations/clothing.qsrc
  2. 104 52
      locations/sexshop.qsrc

+ 2 - 0
locations/clothing.qsrc

@@ -463,6 +463,7 @@ if $ARGS[0] = 'view_clothing_item':
 						end
 						dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = pcs_hips'
 						dynamic $ARGS[2] + 'S[<<ARGS[3]>>] = 0'
+						gs 'stat'
 						gt $loc, $metka
 					end
 				end
@@ -493,6 +494,7 @@ if $ARGS[0] = 'view_clothing_item':
 						end
 						dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = pcs_hips'
 						dynamic $ARGS[2] + 'S[<<ARGS[3]>>] = 0'
+						gs 'stat'
 						gt $loc, $metka
 					end
 				end

+ 104 - 52
locations/sexshop.qsrc

@@ -342,81 +342,133 @@ if $ARGS[0] = 'start':
 	if extradildo = 0 and (money < 800 and karta + bankDebtLimit < 800):
 		'You cannot afford the 10cm dildo.'
 	else
-	if money >= 1000 and extradildo = 0:
-		act 'Buy 30cm long dildo (1,000 <b>₽</b>)':
-			*clr & cla
-			menu_off = 1
-			minut += 5
-			extradildo = 1
-			money -= 1000
-			gs 'stat'
-			'<center><img <<$set_imgh>> src="images/locations/city/citycenter/sexshop/sexshop.jpg"></center>'
-			'You bought a 30cm long dildo and paid the cashier.'
+		if money >= 1000 and extradildo = 0:
+			act 'Buy 30cm long dildo (1,000 <b>₽</b>)':
+				*clr & cla
+				menu_off = 1
+				minut += 5
+				extradildo = 1
+				money -= 1000
+				gs 'stat'
+				'<center><img <<$set_imgh>> src="images/locations/city/citycenter/sexshop/sexshop.jpg"></center>'
+				'You bought a 30cm long dildo and paid the cashier.'
+
+				act 'Move away from the counter':gt 'sexshop','start'
+			end
+		end
+		if karta + bankDebtLimit >= 1000 and extradildo = 0:
+			act 'Buy 30cm long dildo (1,000 <b>₽</b>)':
+				*clr & cla
+				menu_off = 1
+				minut += 5
+				extradildo = 1
+				karta -= 1000
+				gs 'stat'
+				'<center><img <<$set_imgh>> src="images/locations/city/citycenter/sexshop/sexshop.jpg"></center>'
+				'You bought a 30cm long dildo and paid the cashier.'
 
-			act 'Move away from the counter':gt 'sexshop','start'
+				act 'Move away from the counter':gt 'sexshop','start'
+			end
 		end
-	elseif extradildo = 0:
-		'You cannot afford the 30cm long dildo.'
 	end
 
 	if superdildo = 0 and (money < 800 and karta + bankDebtLimit < 800):
 		'You cannot afford the 10cm dildo.'
 	else
-	if money >= 1100 and superdildo = 0:
-		act 'Buy 35cm long dildo (1,100 <b>₽</b>)':
-			*clr & cla
-			menu_off = 1
-			minut += 5
-			superdildo = 1
-			money -= 1100
-			gs 'stat'
-			'<center><img <<$set_imgh>> src="images/locations/city/citycenter/sexshop/sexshop.jpg"></center>'
-			'You bought a 35cm long dildo and paid the cashier.'
+		if money >= 1100 and superdildo = 0:
+			act 'Buy 35cm long dildo (1,100 <b>₽</b>)':
+				*clr & cla
+				menu_off = 1
+				minut += 5
+				superdildo = 1
+				money -= 1100
+				gs 'stat'
+				'<center><img <<$set_imgh>> src="images/locations/city/citycenter/sexshop/sexshop.jpg"></center>'
+				'You bought a 35cm long dildo and paid the cashier.'
 
-			act 'Move away from the counter':gt 'sexshop','start'
+				act 'Move away from the counter':gt 'sexshop','start'
+			end
+		end
+		if karta + bankDebtLimit >= 1100 and superdildo = 0:
+			act 'Buy 35cm long dildo (1,100 <b>₽</b>)':
+				*clr & cla
+				menu_off = 1
+				minut += 5
+				superdildo = 1
+				karta -= 1100
+				gs 'stat'
+				'<center><img <<$set_imgh>> src="images/locations/city/citycenter/sexshop/sexshop.jpg"></center>'
+				'You bought a 35cm long dildo and paid the cashier.'
+
+				act 'Move away from the counter':gt 'sexshop','start'
+			end
 		end
-	elseif superdildo = 0:
-		'You cannot afford the 35cm long dildo.'
 	end
 
 	if maddildo = 0 and (money < 800 and karta + bankDebtLimit < 800):
 		'You cannot afford the 10cm dildo.'
 	else
-	if money >= 1200 and maddildo = 0:
-		act 'Buy 40cm long dildo (1,200 <b>₽</b>)':
-			*clr & cla
-			menu_off = 1
-			minut += 5
-			maddildo = 1
-			money -= 1200
-			gs 'stat'
-			'<center><img <<$set_imgh>> src="images/locations/city/citycenter/sexshop/sexshop.jpg"></center>'
-			'You bought a 40cm long dildo and paid the cashier.'
+		if money >= 1200 and maddildo = 0:
+			act 'Buy 40cm long dildo (1,200 <b>₽</b>)':
+				*clr & cla
+				menu_off = 1
+				minut += 5
+				maddildo = 1
+				money -= 1200
+				gs 'stat'
+				'<center><img <<$set_imgh>> src="images/locations/city/citycenter/sexshop/sexshop.jpg"></center>'
+				'You bought a 40cm long dildo and paid the cashier.'
+
+				act 'Move away from the counter':gt 'sexshop','start'
+			end
+		end
+		if karta + bankDebtLimit >= 1200 and maddildo = 0:
+			act 'Buy 40cm long dildo (1,200 <b>₽</b>)':
+				*clr & cla
+				menu_off = 1
+				minut += 5
+				maddildo = 1
+				karta -= 1200
+				gs 'stat'
+				'<center><img <<$set_imgh>> src="images/locations/city/citycenter/sexshop/sexshop.jpg"></center>'
+				'You bought a 40cm long dildo and paid the cashier.'
 
-			act 'Move away from the counter':gt 'sexshop','start'
+				act 'Move away from the counter':gt 'sexshop','start'
+			end
 		end
-	elseif maddildo = 0:
-		'You cannot afford the 40cm long dildo.'
 	end
 
 	if vibrator = 0 and (money < 800 and karta + bankDebtLimit < 800):
 		'You cannot afford the 10cm dildo.'
 	else
-	if money >= 800 and vibrator = 0:
-		act 'Buy vibrator (800 <b>₽</b>)':
-			*clr & cla
-			menu_off = 1
-			minut += 5
-			vibrator = 1
-			money -= 800
-			gs 'stat'
-			'<center><img <<$set_imgh>> src="images/locations/city/citycenter/sexshop/sexshop.jpg"></center>'
-			'You bought a vibrator and paid the cashier.'
+		if money >= 800 and vibrator = 0:
+			act 'Buy vibrator (800 <b>₽</b>)':
+				*clr & cla
+				menu_off = 1
+				minut += 5
+				vibrator = 1
+				money -= 800
+				gs 'stat'
+				'<center><img <<$set_imgh>> src="images/locations/city/citycenter/sexshop/sexshop.jpg"></center>'
+				'You bought a vibrator and paid the cashier.'
 
-			act 'Move away from the counter':gt 'sexshop', 'start'
+				act 'Move away from the counter':gt 'sexshop', 'start'
+			end
+		end
+		if karta + bankDebtLimit >= 800 and vibrator = 0:
+			act 'Buy vibrator (800 <b>₽</b>)':
+				*clr & cla
+				menu_off = 1
+				minut += 5
+				vibrator = 1
+				karta -= 800
+				gs 'stat'
+				'<center><img <<$set_imgh>> src="images/locations/city/citycenter/sexshop/sexshop.jpg"></center>'
+				'You bought a vibrator and paid the cashier.'
+
+				act 'Move away from the counter':gt 'sexshop', 'start'
+			end
 		end
-	elseif vibrator = 0:
-		'You cannot afford the vibrator.'
 	end
 
 	if strapon = 0: