Browse Source

Updated the check to see if Sveta is "at a home" and in a bedroom.

netuttki 7 months ago
parent
commit
800dfb3da3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      locations/wakeup_events.qsrc

+ 1 - 1
locations/wakeup_events.qsrc

@@ -153,7 +153,7 @@ end
 
 if $ARGS[0] = 'vomiting_check':
 	!! if not one of these locations, event will not fire
-	if $loc = $home['bedroom'] and (at_home = 1 or at_home = 2 or at_home = 3 or at_home = 4 or $loc = 'bedrPar' or at_home = 6 or at_home = 13 or at_home = 15 or $loc = 'mey_home'):
+	if $loc = func('homes_properties_attr', 'get_property_attribute', '$bedroom') and (func('homes_properties', 'is_at_a_home')):
 		gs 'wakeup_events', 'exit'
 		gs 'home_activity', 'vomiting_images'
 		gt 'home_activity', 'morning_vomit'