Browse Source

[fixed] checks against no_condom trait needs to call against numbers greater than 0 because it can be 1 or 2

hornguy6 7 months ago
parent
commit
91621e3a01
1 changed files with 3 additions and 3 deletions
  1. 3 3
      locations/sex_ev_condoms.qsrc

+ 3 - 3
locations/sex_ev_condoms.qsrc

@@ -18,7 +18,7 @@ if $ARGS[0] = 'setup':
 		else
 			sex_ev['condom_count'] = rand(1,10)
 		end
-	elseif npc_no_condoms[$boy] = 1:
+	elseif npc_no_condoms[$boy] > 0:
 		sex_ev['condom_count'] = 0
 	end
 	sex_ev['condom_setup'] = 1
@@ -93,7 +93,7 @@ if $ARGS[0] = 'condom_wait':
 			act'Ask him to use one':
 				cla & *nl
 				'"Wait!" you yelp. "You need to use a condom!"'
-				if npc_no_condoms[$boy] = 1:
+				if npc_no_condoms[$boy] > 0:
 					gs 'sex_ev_condoms', 'npc_doesnt_use_condoms'
 				else
 					gs 'sex_ev_condoms', 'pc_condom_ask3'
@@ -172,7 +172,7 @@ if $ARGS[0] = 'npc_latex_allergy':
 end
 
 if $ARGS[0] = 'pc_condoms2':
-	if npc_no_condoms[$boy] = 1:
+	if npc_no_condoms[$boy] > 0:
 		if npc_latex_allrg[$boy] = 1:
 			gs 'sex_ev_condoms', 'npc_latex_allergy'
 		else