ajout du camion #87
* changements des objectifs, donnent juste des graines, sprite moins gros et objectifs plus nombreux * changement de la probabilité de mutation * refactor du code terrain et planet
This commit is contained in:
@@ -8,7 +8,9 @@ const DEFAULT_INVENTORY_SIZE = 2
|
||||
signal player_updated(player: Player)
|
||||
signal upgraded
|
||||
|
||||
var planet : Planet # mis à jour par la classe Planet
|
||||
var terrain : Terrain
|
||||
var planet : Planet :
|
||||
get(): return terrain if terrain is Planet else null
|
||||
@export var speed = 350
|
||||
|
||||
var max_energy : int = 3
|
||||
@@ -136,7 +138,7 @@ func pick_item(item : Item) -> Item:
|
||||
func drop_item():
|
||||
var item_to_drop = inventory.pop_item()
|
||||
if item_to_drop:
|
||||
planet.drop_item(item_to_drop, global_position)
|
||||
terrain.drop_item(item_to_drop, global_position)
|
||||
play_sfx("drop")
|
||||
|
||||
func delete_item(item: Item):
|
||||
|
||||
Reference in New Issue
Block a user