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:
parent
aa5b113d25
commit
3386bac4ed
@ -187,16 +187,16 @@ func _set_behavior ():
|
||||
# take your pills
|
||||
elif Pills.get_level() < _player_follow_pill_level:
|
||||
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
|
||||
elif daytime < Daytime.WORK_TIME:
|
||||
mood = BEHAVIOR.GO_WORK
|
||||
# go home
|
||||
elif daytime > Daytime.SLEEP_TIME:
|
||||
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:
|
||||
Logger.info("new mood: " + BEHAVIOR.keys()[mood] + " with cntcmd: " + String(_countCmds))
|
||||
|
@ -203,10 +203,11 @@ material/0 = ExtResource( 7 )
|
||||
|
||||
[node name="SpotLight" type="SpotLight" parent="Visibility"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, -1 )
|
||||
layers = 2
|
||||
light_color = Color( 1, 0, 0, 1 )
|
||||
shadow_enabled = true
|
||||
spot_range = 11.6162
|
||||
spot_angle = 19.7549
|
||||
spot_range = 19.691
|
||||
spot_angle = 15.9677
|
||||
|
||||
[node name="InteractArea" type="Area" parent="." groups=[
|
||||
"Enemy",
|
||||
|
Loading…
x
Reference in New Issue
Block a user