Explorar el Código

[added] daystart timers to gaptek to prevent the player from seeing the same message ten times in a row

julzor hace 4 años
padre
commit
069145979c
Se han modificado 1 ficheros con 20 adiciones y 0 borrados
  1. 20 0
      locations/gaptek.qsrc

+ 20 - 0
locations/gaptek.qsrc

@@ -117,6 +117,11 @@ end
 if $ARGS[0] = 'buy_condoms':
 	menu_off = 1
 	*clr & cla
+	if gaptek_timers['condom'] = daystart:
+		gt 'gaptek', 'start'
+	else
+		gaptek_timers['condom'] = daystart
+	end
 	gs 'stat'
 	'<center><B><font color="maroon">Pharmacy</font></B></center>'
 	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/pharmacy/apteka_aunt_1.jpg"></center>'
@@ -165,6 +170,11 @@ end
 if $ARGS[0] = 'buy_birth_control':
 	menu_off = 1
 	*clr & cla
+	if gaptek_timers['birth_control'] = daystart:
+		gt 'gaptek', 'start'
+	else
+		gaptek_timers['birth_control'] = daystart
+	end
 	gs 'stat'
 	'<center><B><font color="maroon">Pharmacy</font></B></center>'
 	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/pharmacy/apteka_aunt_1.jpg"></center>'
@@ -217,6 +227,11 @@ end
 if $ARGS[0] = 'buy_preg_test':
 	menu_off = 1
 	*clr & cla
+	if gaptek_timers['preg_test'] = daystart:
+		gt 'gaptek', 'start'
+	else
+		gaptek_timers['preg_test'] = daystart
+	end
 	gs 'stat'
 	'<center><B><font color="maroon">Pharmacy</font></B></center>'
 	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/pharmacy/apteka_aunt_1.jpg"></center>'
@@ -269,6 +284,11 @@ end
 if $ARGS[0] = 'buy_lube':
 	menu_off = 1
 	*clr & cla
+	if gaptek_timers['lube'] = daystart:
+		gt 'gaptek', 'start'
+	else
+		gaptek_timers['lube'] = daystart
+	end
 	gs 'stat'
 	'<center><B><font color="maroon">Pharmacy</font></B></center>'
 	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/pharmacy/apteka_aunt_1.jpg"></center>'