瀏覽代碼

[fixed] was returning negative bonus for underwear in appearance if not wearing any

Kevin_Smarts 5 月之前
父節點
當前提交
bbd2942102
共有 1 個文件被更改,包括 23 次插入14 次删除
  1. 23 14
      locations/AppearanceSystem.qsrc

+ 23 - 14
locations/AppearanceSystem.qsrc

@@ -188,24 +188,33 @@ if $ARGS[0] = 'CalcAccessoriesBonus':
 	shoesQualityBonus = ARGS[2] & !! PShoQuality
 
 	!!bonuses for certain underwear
-	if PanQuality = 6:
-		pantyBonus = 4
-	elseif PanQuality = 5:
-		pantyBonus = 3
-	elseif PanQuality >= 3:
-		pantyBonus = 2
+	if $pantyworntype = 'none':
+		pantyBonus = 0:
 	else
-		pantyBonus = PanQuality - 1
+		if PanQuality = 6:
+			pantyBonus = 4
+		elseif PanQuality = 5:
+			pantyBonus = 3
+		elseif PanQuality >= 3:
+			pantyBonus = 2
+		else
+			pantyBonus = PanQuality - 1
+		end
 	end
 
-	if BraQuality = 6:
-		braBonus = 4
-	elseif BraQuality = 5:
-		braBonus = 3
-	elseif BraQuality >= 3:
-		braBonus = 2
+
+	if $braworntype = 'none':
+		braBonus = 0:
 	else
-		braBonus = BraQuality - 1
+		if BraQuality = 6:
+			braBonus = 4
+		elseif BraQuality = 5:
+			braBonus = 3
+		elseif BraQuality >= 3:
+			braBonus = 2
+		else
+			braBonus = BraQuality - 1
+		end
 	end
 
 	result = coatQualityBonus + shoesQualityBonus + pantyBonus + braBonus