Browse Source

[fixed] $npcCondom will now default to using Sveta's preference (set in the handbag) instead of none.

anjuna krokus 4 days ago
parent
commit
698e317eb2
1 changed files with 15 additions and 1 deletions
  1. 15 1
      locations/npcStat.qsrc

+ 15 - 1
locations/npcStat.qsrc

@@ -8,6 +8,14 @@
 !! eg. "gs 'boyStat', 'A56'" would call for Roma. Likewise, "gs 'boyStat', 'A56'" also calls for Roma.
 !! A second argument calls for multiple partners. They are output as stats1, stats2, stats3, and stats4, for a total of 5 stats.
 !! If ARGS[1] is not set it defaults to zero, so you can use the variables it sets with or without [0] e.g. dick or dick[0] are equivalent
+!! $ARGS[2] is the condom type. Current types are:
+!!	- 'none':		no conddom
+!!	- 'normal':		a normal condom
+!!	- 'sabotaged'	a sabotaged condom
+!!	- 'extra_thin'
+!!	- 'ribbed'
+
+
 
 if ($ARGS[0] = '' and ARGS[0] > 0) or (isnum(mid($ARGS[0],1,1)) and val(mid($ARGS[0],1,1)) < 10):
 	npclastcalledn = iif($ARGS[1] ! '' and isnum($ARGS[0]), val($ARGS[0]), ARGS[0])
@@ -96,7 +104,13 @@ else
 end
 
 if $ARGS[2] = '':
-	$npcStatVars['condom'] = 'none'
+	if preziktype = 0 and (mc_inventory['equipped_condoms']+mc_inventory['normal_condoms']) > 0:
+		$npcStatVars['condom'] = 'normal'
+	elseif preziktype = 2 and (mc_inventory['equipped_condoms']+mc_inventory['sabotaged_condoms']) > 0:
+		$npcStatVars['condom'] = 'sabotaged'
+	else
+		$npcStatVars['condom'] = 'none'
+	end
 else
 	$npcStatVars['condom'] = $ARGS[2]
 end