Browse Source

[fixed] problems with the courtletter triggering early (again, my bad)

anjuna krokus 8 months ago
parent
commit
1ea02b4eeb
4 changed files with 6 additions and 4 deletions
  1. 3 1
      locations/cikl.qsrc
  2. 1 1
      locations/city_mansion_residence_1.qsrc
  3. 1 1
      locations/korr2x.qsrc
  4. 1 1
      locations/korrPar.qsrc

+ 3 - 1
locations/cikl.qsrc

@@ -1349,7 +1349,9 @@ if policeQW['fine_deadline'] > 0:
 	end
 end
 
-gs 'shortgs', 'coupled_array_sort', 'police_courtletter_dates', '$police_courtletter_subjects'
+
+gs 'shortgs', 'coupled_array_sort', 'policeQW_courtletter_dates', '$policeQW_courtletter_subjects'
+gs 'shortgs', 'coupled_array_sort', 'policeQW_courthearing_dates', '$policeQW_courthearing_subjects'
 
 
 --- cikl ---------------------------------

+ 1 - 1
locations/city_mansion_residence_1.qsrc

@@ -27,7 +27,7 @@ if $ARGS[0] = 'yfoyer':
 		'<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
 	end
 	
-	if arrsize('policeQW_courtletter_dates') and daystart >= policeQW_courtletter_dates[0]: gt 'sentence', 'letter'
+	if arrsize('policeQW_courtletter_dates') > 0 and daystart >= policeQW_courtletter_dates[0]: gt 'sentence', 'letter'
 
 	act 'Walk outside':
 		if $clothingworntype ! 'nude':

+ 1 - 1
locations/korr2x.qsrc

@@ -24,7 +24,7 @@ elektro = elektro + 1
 gs'stat'
 gs 'themes', 'indoors'
 
-if arrsize('policeQW_courtletter_dates') and daystart >= policeQW_courtletter_dates[0]: gt 'sentence', 'letter'
+if arrsize('policeQW_courtletter_dates') > 0 and daystart >= policeQW_courtletter_dates[0]: gt 'sentence', 'letter'
 
 '<center><b><font color = maroon>Corridor</font></b></center>'
 '<center><img <<$set_imgh>> src="images/locations/pushkin/apartment/korr2x.jpg"></center>'

+ 1 - 1
locations/korrPar.qsrc

@@ -32,7 +32,7 @@ gs 'stat'
 
 if locat['Fam_inGad'] = 1:'With your parents away visiting your grandparents, the apartment seems quiet and empty.'
 
-if arrsize('policeQW_courtletter_dates') and daystart >= policeQW_courtletter_dates[0]: gt 'sentence', 'letter'
+if arrsize('policeQW_courtletter_dates') > 0 and daystart >= policeQW_courtletter_dates[0]: gt 'sentence', 'letter'
 
 if (hour ! 16 or hour ! 17) and blockBedrPar = 1:blockBedrPar = 0