Răsfoiți Sursa

[fixed] strings as integers spotted by Chimrod

Kevin_Smarts 7 luni în urmă
părinte
comite
280f51bf1e
3 a modificat fișierele cu 9 adăugiri și 9 ștergeri
  1. 3 3
      locations/ender.qsrc
  2. 2 2
      locations/park_walkevents.qsrc
  3. 4 4
      locations/rape_events.qsrc

+ 3 - 3
locations/ender.qsrc

@@ -373,14 +373,14 @@ if $ARGS[0] = 'loss':
 		fightEnding = 0
 		Loss += 1
         pcs_mood -= 20
-		if temp['rape_loc'] = 'city_park' or temp['rape_loc'] = 'pav_park':
-			if temp['rape_type'] = 'gang':
+		if $temp['rape_loc'] = 'city_park' or $temp['rape_loc'] = 'pav_park':
+			if $temp['rape_type'] = 'gang':
 				gt'rape_events','park_gangrape_fight_loss'
 			else
 				gs'rape_events','park_rape_solo'
 			end
 		else
-!!			if temp['rape_type'] = 'gang':
+!!			if $temp['rape_type'] = 'gang':
 			
 !!			else
 				gt'rape_events','urban_fight_rape'

+ 2 - 2
locations/park_walkevents.qsrc

@@ -1057,7 +1057,7 @@ if $ARGS[0] = 'run':
 						if rand(1,25) < 8 and cheat_street_rapists ! 1:
 							!! if rand(1,3) = 1: gangrape, else single rapist
 							!! not added yet because don''t have single rapist event written yet
-							temp['rape_type'] = 'gang'
+							$temp['rape_type'] = 'gang'
 							cla & *clr
 							'<center><img <<$set_imgh>> src="images/shared/misc/jumped.jpg"></center>'
 							'About halfway through your run, you hear a branch snap to your left. You turn to see a shadow crouching in the bushes, but before you can react, arms grip you from behind and a dirty hand clamps over your mouth. Your eyes go wide with fear as several more shapes emerge from the darkness, moving towards you.'
@@ -1092,7 +1092,7 @@ if $ARGS[0] = 'run':
 								act'Continue':
 									!! if rand(1,3) = 1: gangrape, else single rapist
 									!! not added yet because don''t have single rapist event written yet
-									temp['rape_type'] = 'gang'
+									$temp['rape_type'] = 'gang'
 									cla & *clr
 									'<center><img <<$set_imgh>> src="images/shared/misc/jumped.jpg"></center>'
 									'You''re just thinking to yourself how exciting it is to bare your breasts even when no one is around when suddenly arms grip you from behind and a dirty hand clamps over your mouth. Your eyes go wide with fear as several more shapes emerge from the darkness, moving towards you.'

+ 4 - 4
locations/rape_events.qsrc

@@ -6,14 +6,14 @@ if $ARGS[0] = 'rapist_generate':
 	:rape_gangbang_loop
 	gs 'npcgeneratec', 0, 'rapist', rand(temp['rapist_age'],(temp['rapist_age'] + 8))
 	$rapist[i] = $npclastgenerated
-	if i < 2 and temp['rape_type'] = 'gang':
+	if i < 2 and $temp['rape_type'] = 'gang':
 		i += 1
 		jump 'rape_gangbang_loop'
 	end
 end
 
 if $ARGS[0] = 'fight_init':
-	temp['rape_loc'] = $loc
+	$temp['rape_loc'] = $loc
 	
 	gs 'fight', 'initFight'
 	i = 0
@@ -36,7 +36,7 @@ if $ARGS[0] = 'fight_init':
 	opp_health[i] = dyneval($calcNPCFightHealth)
 	opp_willpwr[i] = 100
 	
-	if i < 2 and temp['rape_type'] = 'gang':
+	if i < 2 and $temp['rape_type'] = 'gang':
 		i += 1
 		jump 'rape_gang_fight_loop'
 	else
@@ -46,7 +46,7 @@ if $ARGS[0] = 'fight_init':
 end
 
 if $ARGS[0] = 'fight_win':
-	if temp['rape_type'] = 'gang':
+	if $temp['rape_type'] = 'gang':
 		money += rand(1500,6000)
 		if $loc = 'pav_park' or $loc = 'city_park':
 			'You defeat the rapists and empty their wallets as they lie unconscious in the dirt.'