Ver Fonte

[added] Check for old clothing variables will sell them off and add 1 basic outfit

KevinSmarts há 3 anos atrás
pai
commit
85f63485a1
2 ficheiros alterados com 135 adições e 1 exclusões
  1. 134 0
      locations/saveupdater.qsrc
  2. 1 1
      locations/start.qsrc

+ 134 - 0
locations/saveupdater.qsrc

@@ -940,5 +940,139 @@ if shave_update ! 1:
 	shave_update = 1
 end
 
+!! 0.8.2 clothing package for old saves ---------------------------------------
+
+if ARRSIZE('cheapH') > 0 or ARRSIZE('averageH') > 0 or ARRSIZE('expensiveH') > 0 or ARRSIZE('formalH') > 0 or ARRSIZE('officeH') > 0 or ARRSIZE('schoolH') > 0 or ARRSIZE('exerciseH') > 0 or ARRSIZE('uniformH') > 0 or ARRSIZE('swimwearH') > 0 or ARRSIZE('beachH') > 0 or ARRSIZE('exhibitH') > 0 or ARRSIZE('alternativeH') > 0 or ARRSIZE('fetishH') > 0 or ARRSIZE('burlesqueH') > 0:
+
+
+	$batch_sell = {
+		poshvalldrop += 1
+		dynamic 'RESULT = <<$ARGS[0]>>H[<<ARGS[1]>>]'
+		if RESULT > 100:
+			dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
+			dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
+			money += 750
+			selltot += 750
+		elseif RESULT > 45:
+			dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
+			dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
+			money += 500
+			selltot += 500
+		elseif RESULT > 30:
+			dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
+			dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
+			money += 300
+			selltot += 300
+		elseif RESULT > 0:
+			dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
+			dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
+			money += 100
+			selltot += 100
+		else
+			dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
+			dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
+		end
+		dynamic '<<$ARGS[0]>>H[<<ARGS[1]>>] = 0'
+	}
+
+
+	poshvalldrop = 0
+	selltot = 0
+
+	i = 1
+	:cheapmet
+		if cheap[i] = 1 and cheapH[i] > 0:dynamic($batch_sell, 'cheap', i)
+		i += 1
+		if i <= 419:jump 'cheapmet'
+
+		i = 1
+		:averagemet
+			if average[i] = 1 and averageH[i] > 0:dynamic($batch_sell, 'average', i)
+			i += 1
+		if i <= 541:jump 'averagemet'
+
+		i = 1
+		:expensivemet
+			if expensive[i] = 1 and expensiveH[i] > 0:dynamic($batch_sell, 'expensive', i)
+			i += 1
+		if i <= 442:jump 'expensivemet'
+
+		i = 1
+		:formalmet
+			if formal[i] = 1 and formalH[i] > 0:dynamic($batch_sell, 'formal', i)
+			i += 1
+		if i <= 185:jump 'formalmet'
+
+		i = 1
+		:officemet
+			if office[i] = 1 and officeH[i] > 0:dynamic($batch_sell, 'office', i)
+			i += 1
+		if i <= 140:jump 'officemet'
+
+		i = 1
+		:schoolmet
+			if school[i] = 1 and schoolH[i] > 0:dynamic($batch_sell, 'school', i)
+			i += 1
+		if i <= 80:jump 'schoolmet'
+
+		i = 1
+		:exercisemet
+			if exercise[i] = 1 and exerciseH[i] > 0:dynamic($batch_sell, 'exercise', i)
+			i += 1
+		if i <= 260:jump 'exercisemet'
+
+		i = 1
+		:fetishmet
+			if fetish[i] = 1 and fetishH[i] > 0:dynamic($batch_sell, 'fetish', i)
+			i += 1
+		if i <= 240:jump 'fetishmet'
+
+		i = 1
+		:burlesquemet
+			if burlesque[i] = 1 and burlesqueH[i] > 0:dynamic($batch_sell, 'burlesque', i)
+			i += 1
+		if i <= 22:jump 'burlesquemet'
+
+		i = 1
+		:exhibitmet
+			if exhibit[i] = 1 and exhibitH[i] > 0:dynamic($batch_sell, 'exhibit', i)
+			i += 1
+		if i <= 125:jump 'exhibitmet'
+
+		i = 1
+		:uniformmet
+			if uniform[i] = 1 and uniformH[i] > 0:dynamic($batch_sell, 'uniform', i)
+			i += 1
+		if i <= 60:jump 'uniformmet'
+
+		i = 1
+		:swimwearmet
+			if swimwear[i] = 1 and swimwearH[i] > 0:dynamic($batch_sell, 'swimwear', i)
+			i += 1
+		if i <= 213:jump 'swimwearmet'
+
+		i = 1
+		:beachmet
+			if beachwear[i] = 1 and beachwearH[i] > 0:dynamic($batch_sell, 'beachwear', i)
+			i += 1
+		if i <= 103:jump 'beachwearmet'
+
+		i = 1
+		:alternativemet
+			if alternativewear[i] = 1 and alternativewearH[i] > 0:dynamic($batch_sell, 'alternativewear', i)
+			i += 1
+		if i <= 129:jump 'alternativewearmet'
+	end
+
+	killvar 'batch_sell'
+
+	gm_outfits[50] = 1
+	gm_outfits_h[50] = 100
+	gm_outfits_b[50] = pcs_hips
+	gs 'clothing', 'wear', 'gm_outfits', 50
+end
+
+!!---------------------------------------------------------------------------------------
+
 --- saveupdater ---------------------------------
 

+ 1 - 1
locations/start.qsrc

@@ -37,7 +37,7 @@ opPRE = 1
 *nl
 '<b><a href="exec:gt ''version''">Change log</a> and <a href="exec:gt ''history''">Game history</a></b>'
 *nl
-'<b>* Wiki hosted by Goole sites available <a href="https://sites.google.com/view/girllifewiki/home">here</a> (External link) *</center></b>'
+'<b>* Wiki hosted by Google sites available <a href="https://sites.google.com/view/girllifewiki/home">here</a> (External link) *</center></b>'
 '<center>Feel free to contribute.</center>'
 
 gs 'themes', 'indoors'