Sfoglia il codice sorgente

[fixed] Also fixed the other option of npcStat variable types

anjuna krokus 2 settimane fa
parent
commit
e77b9ab8e9
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      locations/npcStat.qsrc

+ 5 - 1
locations/npcStat.qsrc

@@ -457,7 +457,11 @@ if $ARGS[1] ! '' and npcStat_i > 0:
 		$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']