Made building consume resources
Now may build more than one if resources allow building placement is red/green for indicating success
This commit is contained in:
@@ -15,5 +15,5 @@ func _ready() -> void:
|
||||
func _cleanup_gather() -> void:
|
||||
interaction_finished.emit()
|
||||
var res: GameResource = Grid.get_location_data(grid_position).get_resource()
|
||||
res.gained_resource.emit(res)
|
||||
ResourceManager.pickup(res)
|
||||
self.queue_free()
|
||||
|
||||
Reference in New Issue
Block a user