Play do_job sound even when work time hasn't begun

Also the Meldewesen gaze light is only visible when sober
This commit is contained in:
karl 2020-01-29 02:40:04 +01:00
parent aa5b113d25
commit 3386bac4ed
2 changed files with 7 additions and 6 deletions

View File

@ -187,16 +187,16 @@ func _set_behavior ():
# take your pills # take your pills
elif Pills.get_level() < _player_follow_pill_level: elif Pills.get_level() < _player_follow_pill_level:
mood = BEHAVIOR.TAKE_PILLS mood = BEHAVIOR.TAKE_PILLS
# do your job
elif _playerRef.is_in_workzone():
_countCmds = 0 # hard block -> work is always good :D
mood = BEHAVIOR.DO_JOB
# go to work # go to work
elif daytime < Daytime.WORK_TIME: elif daytime < Daytime.WORK_TIME:
mood = BEHAVIOR.GO_WORK mood = BEHAVIOR.GO_WORK
# go home # go home
elif daytime > Daytime.SLEEP_TIME: elif daytime > Daytime.SLEEP_TIME:
mood = BEHAVIOR.GO_HOME mood = BEHAVIOR.GO_HOME
# do your job
elif _playerRef.is_in_workzone():
_countCmds = 0 # hard block -> work is always good :D
mood = BEHAVIOR.DO_JOB
if mood != _curMood: if mood != _curMood:
Logger.info("new mood: " + BEHAVIOR.keys()[mood] + " with cntcmd: " + String(_countCmds)) Logger.info("new mood: " + BEHAVIOR.keys()[mood] + " with cntcmd: " + String(_countCmds))

View File

@ -203,10 +203,11 @@ material/0 = ExtResource( 7 )
[node name="SpotLight" type="SpotLight" parent="Visibility"] [node name="SpotLight" type="SpotLight" parent="Visibility"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, -1 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, -1 )
layers = 2
light_color = Color( 1, 0, 0, 1 ) light_color = Color( 1, 0, 0, 1 )
shadow_enabled = true shadow_enabled = true
spot_range = 11.6162 spot_range = 19.691
spot_angle = 19.7549 spot_angle = 15.9677
[node name="InteractArea" type="Area" parent="." groups=[ [node name="InteractArea" type="Area" parent="." groups=[
"Enemy", "Enemy",