Browse Source

[fixed] use of old variable breaking events, spotted by mixati

Kevin_Smarts 2 years ago
parent
commit
853b742fba
1 changed files with 3 additions and 3 deletions
  1. 3 3
      locations/gloryhole.qsrc

+ 3 - 3
locations/gloryhole.qsrc

@@ -125,7 +125,7 @@ if $ARGS[0] = 'hole':
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/shared/gloryhole/action/looking.jpg"></center>'
 	wait 700
-	if gloryhole = 0 or rand(1,5) = 5:
+	if stat['gloryhole'] = 0 or rand(1,5) = 5:
 		act 'Sign the wall':
 			stat['know_glory'] = 1
 			*clr & cla
@@ -182,11 +182,11 @@ if $ARGS[0] = 'hole':
 				gs 'willpower', 'bj', 'self'
 				gs 'willpower', 'pay', 'self'
 				gs 'stat'
-				if gloryhole = 0:
+				if stat['gloryhole'] = 0:
 					'<center><img <<$set_imgh>> src="images/shared/sex/gloryhole/ghfinger'+rand(1,5)+'.jpg"></center>'
 					'You put your finger in the hole hoping to entice a man to come over...'
 					'The man slips 100 <b>₽</b> into the hole, and then puts his erect cock through the hole.'
-				elseif gloryhole > 0:
+				elseif stat['gloryhole'] > 0:
 					'<center><img <<$set_imgh>> src="images/locations/shared/gloryhole/action/ready.jpg"></center>'
 					'You poke your finger in the hole showing that you are ready to serve a man. Then you put your face close to the hole and open your mouth.'
 					'The stranger slips 100 <b>₽</b> into the hole, and then his erect cock pokes out of the hole.'