Ver Fonte

Hotel payment back to normal, no `shortgs` call

netuttki há 1 ano atrás
pai
commit
a32948098c
1 ficheiros alterados com 17 adições e 11 exclusões
  1. 17 11
      locations/city_hotel.qsrc

+ 17 - 11
locations/city_hotel.qsrc

@@ -153,26 +153,30 @@ if $ARGS[0] = 'reception':
 end
 
 if $ARGS[0] = 'pay_the_room':
-	if totalCost<=money:
+	hotel_room_id = ARGS[1]
+	if totalCost<=money:		
 		act 'Pay with cash':
 			cla
 			money-=totalCost
-			hotelRoom['pav_hotel'] = ARGS[1]
-			hotelRoomDays['pav_hotel'] = daystart + hotelRoomDays['pav_hotel']
+			hotelRoom['city_hotel'] = hotel_room_id
+			hotelRoomDays['city_hotel'] = daystart + hotelRoomDays['city_hotel']
 			'You count the money and give it to her. She gives you the key to your room in return. She says happily: "Thank you ' + iif(pavHotelMaid = 0, 'miss', $pcs_nickname) +', I hope you enjoy your stay!"'
-			act 'Step away from the reception desk': gt 'pav_hotel'
+			act 'Step away from the reception desk': gt 'city_hotel'
 			killvar 'totalCost'
+			killvar 'hotel_room_id'
 		end
 	end
 	if totalCost<=karta+bankDebtLimit:
 		act 'Pay with card':
 			cla
 			karta-=totalCost
-			hotelRoom['pav_hotel'] = ARGS[1]
-			hotelRoomDays['pav_hotel'] = daystart + hotelRoomDays['pav_hotel']
+			'hotel_room_id: <<hotel_room_id>>'
+			hotelRoom['city_hotel'] = hotel_room_id
+			hotelRoomDays['city_hotel'] = daystart + hotelRoomDays['city_hotel']
 			'You swipe your card and wait a moment for ''APPROVED'' to appear on the tiny screen. As soon as the receipt is printed, she hands it to you with the key to your room. "Thank you ' + iif(pavHotelMaid = 0, 'miss', $pcs_nickname) +', I hope you enjoy your stay!" she says with a smile.'
-			act 'Step away from the reception desk': gt 'pav_hotel'
+			act 'Step away from the reception desk': gt 'city_hotel'
 			killvar 'totalCost'
+			killvar 'hotel_room_id'
 		end
 	end
 
@@ -181,12 +185,14 @@ if $ARGS[0] = 'pay_the_room':
 		if ARGS[1] = 2: act 'You can''t afford to stay in a luxury room at this hotel for that long.': gt 'city_hotel'
 		if ARGS[1] = 3: act 'You can''t afford to stay in the Royal Suite at this hotel for that long.': gt 'city_hotel'
 		killvar 'totalCost'
+		killvar 'hotel_room_id'
 	end
 
-	act 'You change your mind': killvar 'totalCost' & gt 'city_hotel'
-	
-	
-	'<center><img <<$set_imgh>> src="images/locations/city/citycenter/hotel/receptionist.jpg"></center>'
+	act 'You change your mind': 
+		killvar 'totalCost' 
+		killvar 'hotel_room_id'
+		gt 'city_hotel'
+	end
 end
 
 --- city_hotel ---------------------------------