瀏覽代碼

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

anjuna krokus 1 周之前
父節點
當前提交
17d2f7b208
共有 1 個文件被更改,包括 5 次插入1 次删除
  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 --------------------------------------------------