Forráskód Böngészése

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

anjuna krokus 2 hete
szülő
commit
444ded1cbf
1 módosított fájl, 5 hozzáadás és 1 törlés
  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']