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:
parent
513b0c92a7
commit
a62cd6018e
10 changed files with 40 additions and 24 deletions
|
|
@ -56,14 +56,14 @@ func get_next_target():
|
|||
Log.pr("No previous drone")
|
||||
return null
|
||||
|
||||
func deposit_nectar():
|
||||
func deposit_nectar() -> void:
|
||||
if nectar > 0:
|
||||
GameState.add_nectar()
|
||||
GameState.add_nectar(nectar)
|
||||
nectar = 0
|
||||
latest_target_director = 0
|
||||
just_gathering = false
|
||||
|
||||
func die():
|
||||
func die() -> void:
|
||||
# Move to the death state
|
||||
fsm.force_change_state("Death")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue