1
0
Просмотр исходного кода

[fixed] Using the schedule would removes the act. Reported by jonnie. Small layout changes, and removed an unneeded willpower payment

anjuna krokus 1 месяц назад
Родитель
Сommit
463cbfaffb
2 измененных файлов с 36 добавлено и 21 удалено
  1. 32 19
      locations/stripclub.qsrc
  2. 4 2
      locations/stripclub_schedule.qsrc

+ 32 - 19
locations/stripclub.qsrc

@@ -9,23 +9,39 @@ if $ARGS[0] = 'start':
 	$menu_arg = 'start'
 	menu_off = 0
 	if sound = 0:
-		if month >= 11 and month <= 12 or month >= 1 and month <= 3:
-			if hour >= 3 and hour <= 17: PLAY 'sound/street2.mp3',30 & PLAY 'sound/street7.mp3',30 & PLAY 'sound/zima.mp3',30
-			if hour >= 18 or hour <= 2: PLAY 'sound/street_club.mp3',30
+		if month >= 11 or month <= 3:
+			if hour >= 3 and hour <= 17:
+				PLAY 'sound/street2.mp3', 30
+				PLAY 'sound/street7.mp3', 30
+				PLAY 'sound/zima.mp3', 30
+			else
+				PLAY 'sound/street_club.mp3', 30
+			end
 		else
-			if hour >= 3 and hour <= 17: PLAY 'sound/street2.mp3',30 & PLAY 'sound/street7.mp3',30 & PLAY 'sound/street_leto.mp3',30
-			if hour >= 18 or hour <= 2: PLAY 'sound/street_club.mp3',30
+			if hour >= 3 and hour <= 17:
+				PLAY 'sound/street2.mp3', 30
+				PLAY 'sound/street7.mp3', 30
+				PLAY 'sound/street_leto.mp3', 30
+			else
+				PLAY 'sound/street_club.mp3', 30
+			end
 		end
 	end
 	gs 'stat'
 	gs 'themes', 'indoors'
 	'<center><b><font color="maroon">Strip Club</font></b></center>'
-	if month >= 11 and month <= 12 or month >= 1 and month <= 3:
-		if hour >= 19 or hour <= 5: '<center><img <<$set_imgh>> src="images/locations/city/redlight/stripclub/club_night_winter.jpg"></center>'
-		if hour >= 6 and hour <= 18: '<center><img <<$set_imgh>> src="images/locations/city/redlight/stripclub/club_day_winter.jpg"></center>'
+	if month >= 11 or month <= 3:
+		if hour >= 19 or hour <= 5:
+			'<center><img <<$set_imgh>> src="images/locations/city/redlight/stripclub/club_night_winter.jpg"></center>'
+		else
+			'<center><img <<$set_imgh>> src="images/locations/city/redlight/stripclub/club_day_winter.jpg"></center>'
+		end
 	else
-		if hour >= 20 and hour <= 5: '<center><img <<$set_imgh>> src="images/locations/city/redlight/stripclub/club_night_summer.jpg"></center>'
-		if hour >= 6 and hour <= 19: '<center><img <<$set_imgh>> src="images/locations/city/redlight/stripclub/club_day_summer.jpg"></center>'
+		if hour >= 20 and hour <= 5:
+			'<center><img <<$set_imgh>> src="images/locations/city/redlight/stripclub/club_night_summer.jpg"></center>'
+		else
+			'<center><img <<$set_imgh>> src="images/locations/city/redlight/stripclub/club_day_summer.jpg"></center>'
+		end
 	end
 	*nl
 
@@ -37,7 +53,9 @@ if $ARGS[0] = 'start':
 		'The strip club is closed. You notice a sign on the door stating that business hours are between 18:00 and 03:00.'
 	else
 		gs 'stripclub', 'entry'
-		if strip_club['stripwork'] = 1 or strip_club['stripbarwork'] = 1 or strip_club['stripbarwork1'] = 1: gs 'stripclub', 'employee_entrance'
+		if strip_club['stripwork'] = 1 or strip_club['stripbarwork'] = 1 or strip_club['stripbarwork1'] = 1:
+			gs 'stripclub', 'employee_entrance'
+		end
 	end
 end
 
@@ -115,14 +133,9 @@ if $ARGS[0] = 'entry':
 		end
 	end
 
-	if pcs_dancero > 0 and strip_club['stripwork'] = 0:
-		act 'Ask about working here': gt 'stripclub', 'hire1'
-	elseif strip_club['stripwork'] = 0:
-		if pcs_inhib >= 40:
-			act 'Ask about working here':
-				gs 'willpower', 'pay', 'force'
-				gt 'stripclub', 'hire1'
-			end
+	if strip_club['stripwork'] = 0:
+		if pcs_dancero > 0 or pcs_inhib >= 40:
+			act 'Ask about working here': gt 'stripclub', 'hire1'
 		else
 			gs 'willpower', 'pcs_inhib', 'self', 'medium'
 			if pcs_willpwr < will_cost:

+ 4 - 2
locations/stripclub_schedule.qsrc

@@ -118,7 +118,7 @@ if $ARGS[0] = 'display_single_shift':
 
 	$result +=	'<tr><td>'
 	if strip_club[$scs_arg_string] = 0 and strip_club[$scs_arg_string + '_taken'] < 2 and no (week = ARGS[1] and hour >= scs_hour1 and hour < scs_hour2):
-		$result +=		'<a href="exec:strip_club[''<<$scs_arg_string>>''] = 1 & gt ''stripclub_schedule'', ''<<$scs_return_arg>>''"><<$scs_time_string>> shift</a>'
+		$result +=		'<a href="exec:strip_club[''<<$scs_arg_string>>''] = 1 & gs ''stripclub_schedule'', ''<<$scs_return_arg>>''"><<$scs_time_string>> shift</a>'
 	elseif strip_club[$scs_arg_string + '_taken'] = 2 or (week = ARGS[1] and hour >= scs_hour1 and hour < scs_hour2):
 		$result +=		'<<$scs_time_string>> shift'
 		$result +=	'</td></tr><tr><td>'
@@ -132,7 +132,7 @@ if $ARGS[0] = 'display_single_shift':
 	else
 		$result +=		'<<$scs_time_string>> shift'
 		$result +=	'</td></tr><tr><td>'
-		$result +=		'<a href="exec:strip_club[''<<$scs_arg_string>>''] = 0 & gt ''stripclub_schedule'', ''<<$scs_return_arg>>''">Cancel Shift</a>'
+		$result +=		'<a href="exec:strip_club[''<<$scs_arg_string>>''] = 0 & gs ''stripclub_schedule'', ''<<$scs_return_arg>>''">Cancel Shift</a>'
 	end
 	$result +=	'</td></tr>'
 
@@ -321,12 +321,14 @@ end
 
 
 if $ARGS[0] = 'set_schedule':
+	*clr
 	gs 'stripclub_schedule', 'set_schedule_base', 0
 end
 
 
 
 if $ARGS[0] = 'next_week_set_schedule':
+	*clr
 	gs 'stripclub_schedule', 'set_schedule_base', 1
 end