ソースを参照

[fixed] Hotel stay was being granted extra night and typo in check for room access

Kevin_Smarts 2 年 前
コミット
3879bb70d3
2 ファイル変更7 行追加7 行削除
  1. 1 1
      locations/city_hotel.qsrc
  2. 6 6
      locations/stat.qsrc

+ 1 - 1
locations/city_hotel.qsrc

@@ -39,7 +39,7 @@ if $ARGS[0] = 'start' or $ARGS[0] = '':
 
 	act 'Leave': minut += 5 & gt 'city_center'
 
-	if hotelRoomDays['city_hotel'] - daystart >= 1:
+	if hotelRoom['city_hotel'] ! 0:
 		act 'Go to your room':
 			$hotel = 'city_hotel'
 			if hotelRoom['city_hotel'] = 1:gt'hotelroom','normal'

+ 6 - 6
locations/stat.qsrc

@@ -1142,21 +1142,21 @@ if workFabrika = 1 and week => 1 and week <= 5 and hour > 8 and age => 16 and ag
 end
 
 if hotelRoom['pav_hotel'] > 0:
-	if hotelRoomDays['pav_hotel'] = daystart:
+	if hotelRoomDays['pav_hotel'] - 1 = daystart:
 		$stat_msg += '<BR>You have 1 night left on your pav hotel booking.'
-	elseif hotelRoomDays['pav_hotel'] + 1 = daystart and hour < 11:
+	elseif hotelRoomDays['pav_hotel'] = daystart and hour < 11:
 		$stat_msg += '<BR>Your room at the Pavlosk hotel has check out today at 11:00'
-	elseif hotelRoomDays['pav_hotel'] < daystart:
+	elseif hotelRoomDays['pav_hotel'] = daystart:
 		hotelRoom['pav_hotel'] = 0
 	end
 end
 
 if hotelRoom['city_hotel'] > 0:
-	if hotelRoomDays['city_hotel'] = daystart:
+	if hotelRoomDays['city_hotel'] - 1 = daystart:
 		$stat_msg += '<BR>You have 1 night left on your pav hotel booking.'
-	elseif hotelRoomDays['city_hotel'] + 1 = daystart and hour < 11:
+	elseif hotelRoomDays['city_hotel'] = daystart and hour < 11:
 		$stat_msg += '<BR>Your room at the St Petersburg hotel has check out today at 11:00'
-	elseif hotelRoomDays['city_hotel'] < daystart:
+	elseif hotelRoomDays['city_hotel'] = daystart:
 		hotelRoom['city_hotel'] = 0
 	end
 end