Преглед изворни кода

[fixed] make sure reks buys a dress for sveta and that the random options are the same type as the hardcoded

sovietmercader пре 4 година
родитељ
комит
2ab84380c2
1 измењених фајлова са 9 додато и 9 уклоњено
  1. 9 9
      locations/reks.qsrc

+ 9 - 9
locations/reks.qsrc

@@ -180,19 +180,19 @@ if $ARGS[0] = 'skver':
 						cla
 						*clr
 						minut += 30
-						if expensive[8] = 0:
-							expensive[8] = 1
-							expensiveH[8] = 50
-							expensiveB[8] = pcs_hips
+						if expensive[76] = 0:
+							expensive[76] = 1
+							expensiveH[76] = 50
+							expensiveB[76] = pcs_hips
 							'Rex buys you the dress.'
 						else
 							'You already have this dress, so Rex buys you something else.'
 							:markbuycloreks
-							numrand = rand(1, 125)
-							if average[numrand] = 0:
-								average[numrand] = 1
-								averageH[numrand] = 50
-								averageB[numrand] = pcs_hips
+							numrand = rand(76, 127)
+							if expensive[numrand] = 0:
+								expensive[numrand] = 1
+								expensiveH[numrand] = 50
+								expensiveB[numrand] = pcs_hips
 								'<center><img <<$set_imgh>> src="images/pc/clothing/3expensive/<<numrand>>.jpg"></center>'
 							else
 								jump 'markbuycloreks'