Răsfoiți Sursa

[fixed] Hotel rental check to prevent staying there forever for free

Kevin_Smarts 5 luni în urmă
părinte
comite
1f59ec8f21

+ 2 - 0
locations/HotelRoom.qsrc

@@ -1,5 +1,7 @@
 # HotelRoom
 
+if hotelRoomDays[$region] = 0 and hour > 11: hotelRoom[$region] = 0
+if hotelRoomDays[$region] < 0: hotelRoom[$region] = 0
 CLOSE ALL
 if $ARGS[0] = 'normal':
 	*clr & cla

+ 2 - 0
locations/city_hotel.qsrc

@@ -1,6 +1,8 @@
 # city_hotel
 
 if $ARGS[0] = 'start' or $ARGS[0] = '':
+	if hotelRoomDays['city'] = 0 and hour > 11: hotelRoom['city'] = 0
+	if hotelRoomDays['city'] <= 0: hotelRoom['city'] = 0
 	*clr & cla
 	nom_o[1] = 100
 	nom_o[2] = 1000

+ 2 - 0
locations/pav_hotel.qsrc

@@ -7,6 +7,8 @@ $location_type = 'public_indoors'
 menu_off = 0
 
 $receptionName = 'Elisabet'
+if hotelRoomDays['pav'] = 0 and hour > 11: hotelRoom['pav'] = 0
+if hotelRoomDays['pav'] < 0: hotelRoom['pav'] = 0
 gs 'stat'
 
 ! use this args if some event  transfers you directly to the lobby  and it is can happen  between  midnight and 01:00.

+ 2 - 0
locations/pav_hotelReception.qsrc

@@ -4,6 +4,8 @@ if $ARGS[0] = '':
 	$menu_loc = 'pav_hotelReception'
 	$menu_arg = ''
 	menu_off = 0
+	if hotelRoomDays['pav'] = 0 and hour > 11: hotelRoom['pav'] = 0
+	if hotelRoomDays['pav'] < 0: hotelRoom['pav'] = 0
 	gs'stat'
 	'<center><H4>Hotel reception</H4></center>'
 	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/resep.girl0,'+rand(0,10)+'.jpg"></center>'