feat(client): CanonLog.add_quest/has_quest for offer_quest
This commit is contained in:
@@ -58,6 +58,20 @@ func adjust_disposition(id: String, delta: int) -> bool:
|
||||
return true
|
||||
|
||||
|
||||
func has_quest(id: String) -> bool:
|
||||
for q in active_quests:
|
||||
if q.id == id:
|
||||
return true
|
||||
return false
|
||||
|
||||
|
||||
func add_quest(id: String, name: String, objective: String) -> bool:
|
||||
if has_quest(id):
|
||||
return false
|
||||
active_quests.append(Quest.new(id, name, "active", objective))
|
||||
return true
|
||||
|
||||
|
||||
func set_quest_status(id: String, status: String) -> bool:
|
||||
for q in active_quests:
|
||||
if q.id == id:
|
||||
|
||||
Reference in New Issue
Block a user