forked from 2121578/gai-ca2
16 lines
470 B
GDScript
16 lines
470 B
GDScript
class_name TaskPickupBoat
|
|
extends Task
|
|
|
|
func run(blackboard: Dictionary) -> void:
|
|
var player: PlayerManager = blackboard["player"]
|
|
var world: World = blackboard["world"]
|
|
|
|
if world.camp_manager.boat_build_location == tilemap_types.EMPTY:
|
|
status = FAILURE
|
|
status_reason = "Boat is not on the map"
|
|
return
|
|
|
|
player.pick_up_item(world.camp_manager.boat_build_location)
|
|
status = SUCCESS
|
|
status_reason = "Picked up boat"
|