Browse Source

[fixed] potential issues between saved npc_sexskill (range 0-2) and generated (range 0-100).

anjuna krokus 2 weeks ago
parent
commit
444ded1cbf
1 changed files with 5 additions and 1 deletions
  1. 5 1
      locations/npcStat.qsrc

+ 5 - 1
locations/npcStat.qsrc

@@ -500,7 +500,11 @@ else
 	$dick_class[npcStat_i]		= $npcStatVars['dick_class']
 	$dick_desc[npcStat_i]		= $npcStatVars['dick_desc']
 	$dick_desc_pref[npcStat_i]	= $npcStatVars['dick_desc_pref']
-	silavag[npcStat_i]			=  npcStatVars['sexskill'] / 50
+	if npcStatVars['sexskill'] > 2:
+		silavag[npcStat_i]		=  min(npcStatVars['sexskill'] / 34, 2)
+	else
+		silavag[npcStat_i]		=  npcStatVars['sexskill']
+	end
 	 npcAge[npcStat_i]			=  npcStatVars['age']
 	$npcHair[npcStat_i]			= $npcStatVars['hair']
 	$npcClo[npcStat_i]			= $npcStatVars['outfit']