Browse Source

[fixed] An empty condom_type now sets `$npcCondom` to 'none'.

anjuna krokus 1 day ago
parent
commit
17d2f7b208
1 changed files with 5 additions and 1 deletions
  1. 5 1
      locations/npcStat.qsrc

+ 5 - 1
locations/npcStat.qsrc

@@ -95,7 +95,11 @@ else
 	npcStatVars['age'] = rand(18, 35)
 end
 
-$npcStatVars['condom'] = $ARGS[2]
+if $ARGS[2] = '':
+	$npcStatVars['condom'] = 'none'
+else
+	$npcStatVars['condom'] = $ARGS[2]
+end
 
 
 !! ----- AGE --------------------------------------------------