Browse Source

[fixes] Redid the tipping so that it doen't give wrong messages and is now all hardcoded so less variables

KevinSmarts 5 years ago
parent
commit
7592413349
1 changed files with 22 additions and 27 deletions
  1. 22 27
      locations/stwork2.qsrc

+ 22 - 27
locations/stwork2.qsrc

@@ -120,43 +120,38 @@ if $ARGS[0] = 'strip':
 end
 
 if $ARGS[0] = 'tipcalculator':
-	chance = 0
-	paymin = 0
-	paymax = 0
 	
 	if striptip < 30:
 		'Nobody even noticed you or your efforts on the stage.'
 	elseif striptip < 60:
 		'A couple of people looked at you but nothing more than that, you didn''t receive a tip.'
 	elseif striptip < 70:
-		paymax = 1
 		if payrand = 0: 'A couple of people looked at you but nothing more than that, you didn''t receive a tip.'
 	elseif striptip < 80:
-		chance = 5
-		paymin = 3
-		paymax = 10
-		'The customers are pleased with your performance. They give you a small tip.'
+		if rand(0,5) = 0:
+			'The customers are pleased with your performance. No one tipped you.'
+		else
+			paymoneyrand = rand(3,10) * 10
+			money += paymoneyrand
+			pcs_mood += rand(1,2)
+			'The customers are pleased with your performance. They give you <<paymoneyrand>>0 <b>₽</b> in tips.'
+		end
 	elseif striptip < 90:
-		chance = 10
-		paymin = 10
-		paymax = 50
-		'The customers are following you move between their conversations. As you finish they give you a decent tip.'
+		if rand(0,10) = 0:
+			'The customers are following you move between their conversations. No one tipped you.'
+		else
+			paymoneyrand = rand(10,50) * 10
+			money += paymoneyrand
+			pcs_mood += rand(1,2)
+		'The customers are following you move between their conversations. As you finish they give you <<paymoneyrand>>0 <b>₽</b> in tips.'
 	else
-		chance = 15
-		paymin = 10
-		paymax = 100
-		'The customers are paying their full attention to your dancing and are tipping quite nicely.'
-	end
-	
-	payrand = rand(0, chance)
-	if payrand = 0:
-		'No one tipped you.'
-	else
-		paymoneyrand = rand(paymin, paymax)
-		money += paymoneyrand * 10
-		pcs_mood += rand(1,2)
-		'Some guy shoved <<paymoneyrand>>0 <b>₽</b> in your panties and slapped you on the ass.'
-	
+		if rand(0,15) = 0:
+			'The customers are paying their full attention to your dancing but no one tipped you.'
+		else
+			paymoneyrand = rand(10,100) * 10
+			money += paymoneyrand
+			pcs_mood += rand(1,2)
+		'The customers are paying their full attention to your dancing and are tipped <<paymoneyrand>>0 <b>₽</b>.'
 	end
 end