Game files
This commit is contained in:
15
Scripts/Characters/cConstruct.gd
Normal file
15
Scripts/Characters/cConstruct.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
class_name cConstruct extends cCharacter
|
||||
|
||||
signal location_changed(ai, old_location, new_location)
|
||||
signal state_changed(ai, old_state, new_state)
|
||||
|
||||
@export var night_manager: NightManager
|
||||
|
||||
func _ready():
|
||||
night_manager.hour_changed.connect(_on_hour_changed)
|
||||
|
||||
func _on_hour_changed(hour: int):
|
||||
if hour == 1:
|
||||
ai_level += 2
|
||||
if hour == 3:
|
||||
ai_level += 5
|
||||
Reference in New Issue
Block a user