Ver código fonte

[fixed] Event check to prevent multiple events in a row fix by rachels in pavComplex

KevinSmarts 5 anos atrás
pai
commit
e2deaea3d3
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      locations/pavComplex.qsrc

+ 3 - 3
locations/pavComplex.qsrc

@@ -44,11 +44,11 @@ if $ARGS[0] = 'start':
 
 	if StoryLine > 0 and hour < 4 and motherWorry = 0 and SchoolAtestat = 0 and age < 18 and home_owned[2] = 1: motherWorry = 1
 
-	if pavcomplexevent_hour + 1 = hour:
-		pavcomplexevent_hour = hour
+	if  ((minut + 60*(hour+daystart*24) - pavcomplexevent_time) > 60) or ((daystart+1)*1440 < pavcomplexevent_time):
+		pavcomplexevent_time = minut + 60*(hour+daystart*24)
 		if hour >= 8 and hour <= 20 and rand (1,4) = 1: gt 'pavaptcourtev', 'events1'
 		if (hour < 8 or hour > 20) and rand (1,8) = 1: gt 'pavaptcourtev', 'events2'
-	end
+	end	
 	
 	if car > 0 and cardrive = 20:
 		cardrive = 20