More work on taking quests
This commit is contained in:
@@ -1,33 +1,6 @@
|
||||
class_name Adventurer extends CharacterBody2D
|
||||
class_name Adventurer extends Npc
|
||||
|
||||
const popup_template = preload("res://profile_popup.tscn")
|
||||
var profile_popup
|
||||
|
||||
@onready var bt_player : BTPlayer = $BTPlayer
|
||||
@export var movement_speed : float = 400.0
|
||||
@onready var movement_target_position : Vector2 = global_position
|
||||
@onready var nav_agent : NavigationAgent2D = $NavigationAgent2D
|
||||
|
||||
var data : AdventurerData = null
|
||||
var interaction_target = null
|
||||
var last_position : Vector2 = Vector2.ZERO
|
||||
var stuck : bool = false
|
||||
var stuck_time_remaining : float = 0
|
||||
var busy : bool = false
|
||||
var _activity : String = ""
|
||||
var activity : String :
|
||||
get:
|
||||
return _activity
|
||||
set(value):
|
||||
_activity = value
|
||||
if profile_popup:
|
||||
profile_popup.change_activity(_activity)
|
||||
@onready var bubble : SpeechBubble = $SpeechBubble
|
||||
@export var interaction_range : float = 75
|
||||
@export var stop_range : float = 25
|
||||
|
||||
signal navigation_finished()
|
||||
signal navigation_failed()
|
||||
|
||||
func _ready() -> void:
|
||||
nav_agent.navigation_finished.connect(_on_nav_agent_finished)
|
||||
|
||||
Reference in New Issue
Block a user