Added a few translation helpers
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class_name Quest extends Node
|
||||
|
||||
@export var title:String = ""
|
||||
@export_multiline var title:String = ""
|
||||
@export var questKey:QuestSystem.QuestKey = QuestSystem.QuestKey.TEST_QUEST
|
||||
|
||||
var questStarted:bool = false
|
||||
@@ -28,4 +28,8 @@ func isStarted() -> bool:
|
||||
return questStarted
|
||||
|
||||
func objectiveUpdated(objective:QuestObjective) -> void:
|
||||
QUEST.questUpdated.emit(self)
|
||||
QUEST.questUpdated.emit(self)
|
||||
|
||||
func getLocaleData() -> Dictionary[String, String]:
|
||||
var dict: Dictionary[String, String] = {}
|
||||
return dict
|
||||
|
@@ -4,7 +4,8 @@ enum Type {
|
||||
Item,
|
||||
}
|
||||
|
||||
@export var title:String = ""
|
||||
@export_multiline var title:String = ""
|
||||
@export_multiline var description:String = ""
|
||||
@export var objectiveType:Type = Type.Item
|
||||
|
||||
@export var itemType:Item.Type = Item.Type.POTION
|
||||
@@ -38,3 +39,9 @@ func _onPlayerInventoryUpdated() -> void:
|
||||
|
||||
func isCompleted() -> bool:
|
||||
return completed
|
||||
|
||||
func getLocaleData() -> Dictionary[String, String]:
|
||||
var dict:Dictionary[String, String] = {}
|
||||
dict.item = ITEM.getItemName(itemType, quantity)
|
||||
dict.quantity = LOCALE.formatInteger(quantity)
|
||||
return dict
|
||||
|
Reference in New Issue
Block a user