1
0
Pārlūkot izejas kodu

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

anjuna krokus 1 nedēļu atpakaļ
vecāks
revīzija
17d2f7b208
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  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 --------------------------------------------------