Browse Source

[changed] some stuff on the coding side and accounting for single digit minutes on a clock

hornguy6 3 years ago
parent
commit
6a51e3ae86
1 changed files with 9 additions and 3 deletions
  1. 9 3
      locations/masseuse_work.qsrc

+ 9 - 3
locations/masseuse_work.qsrc

@@ -36,7 +36,9 @@ if $ARGS[0] = 'shift_end':
 	gs 'arousal','end'
 	if robe = 0:robe = 1
 	salon['work_minutes'] = 0
-	masseuse['<<week>>_shift_<<masseuse_shift>>'] = 0
+	masseuse['<<week>>_shift_<<masseuse_shift>>'] = 2
+	masseuse['last_worked_day'] = daystart
+	masseuse['last_worked_hour'] = hour
 	money += massage['shift_tips']
 	massage['shift_tips'] = 0
 	salon['work_minutes'] = 0
@@ -104,8 +106,12 @@ if $ARGS[0] = 'last_client':
 		elseif cumloc[0] = 0 and cumloc[11] = 0:
 			act'Get ready for the next shift':gt'masseuse_work','shift_start'
 		end
-	else		
-		'<b><<hour>>:<<minut>>.</b> Looks like your shift is just about over. Time to wrap up for the day.'
+	else
+		if minut < 10:
+			'<b><<hour>>:0<<minut>>.</b> Looks like your shift is just about over. Time to wrap up for the day.'
+		else
+			'<b><<hour>>:<<minut>>.</b> Looks like your shift is just about over. Time to wrap up for the day.'
+		end
 		*nl
 		if cumloc[0] > 0 or cumloc[11] > 0:
 			'The only question left is if you''re going to clean yourself up first.'