Updated bee nectar gathering and game levels

The bee's nectar gathering now depends on the current flower nectar level. The return, deposit_nectar, die, and other functions have been updated to return void. Nectar requirements for each game level have been increased tenfold. A new variable 'flower_nectar_level' has been added to manage the amount of nectar in flowers. Also, several functions in GameStateManager were updated to include specific input parameters or return void.
This commit is contained in:
Dan Baker 2024-05-14 19:05:47 +01:00
parent 513b0c92a7
commit a62cd6018e
10 changed files with 40 additions and 24 deletions

View file

@ -23,7 +23,7 @@ func update(_delta : float):
time_at_patch += _delta
if time_at_patch > 5.0:
Log.pr("Gathered nectar!")
bee.nectar += 1
bee.nectar += GameState.flower_nectar_level # Add nectar to the bee based on current flower nectar level
state_transition.emit(self, "Idle")
else:
state_transition.emit(self, "Idle")

View file

@ -4,7 +4,7 @@ class_name BeeReturning
@onready var bee = get_parent().get_parent() as Bee # I think this is bad but I dont care it works
@onready var target = get_tree().get_first_node_in_group("beehive")
func enter(_msg := {}):
func enter(_msg := {}) -> void:
Log.pr("Returning to the hive")
bee.bee_position_animation.play("Flying")