Renamed assets, worked on the clock and map, started improving assets.

This commit is contained in:
2025-10-23 09:32:14 -04:00
parent 8811c851f9
commit 379fa4bd70
71 changed files with 747 additions and 513 deletions

View File

@@ -6,6 +6,9 @@ enum Slots{
ACCESSORY
}
var last_id : int = 1
var id : int
@export var image : Texture2D
@export var name : StringName
@export var brief : String
@@ -15,6 +18,9 @@ enum Slots{
@export var per : bool
@export var grade : String = "F"
func _init() -> void:
last_id += 1
id = last_id
func item_type_name() -> String:
return "Item"

View File

@@ -2,7 +2,7 @@ class_name Quest extends Resource
#The list of available quests
static var list : Array[Quest]
static var last_id : int = 1
enum Status{
OPEN,
@@ -32,6 +32,7 @@ class Event:
VICTORY,
DEFEAT
}
var hidden : bool = false
var type : Type = Type.WAIT
var enemies : Array[String] = []
@@ -51,7 +52,7 @@ class Event:
func setup() -> void:
pass
func save_dict() -> Dictionary:
func save() -> Dictionary:
var d : Dictionary = {}
d.hidden = hidden
d.type = type
@@ -236,6 +237,7 @@ class Event:
complete = true
completed.emit()
var id : int
var base_name : String = ""
var name : String = "A Basic Quest"
var desc : String = "The default quest, with no special anything."
@@ -259,6 +261,8 @@ var questor : Adventurer = null
signal status_changed(status : Status)
func _init() -> void:
last_id += 1
id = last_id
pass
func initiate(member : Adventurer) -> void:
@@ -328,8 +332,9 @@ static func load_quest_list() -> void:
static func generate(parameters : Dictionary) -> Quest:
return null
func save_dict() -> Dictionary:
func save() -> Dictionary:
var d : Dictionary = {}
d.id = id
d.name = name
d.base_name = base_name
d.desc = desc
@@ -349,6 +354,6 @@ func save_dict() -> Dictionary:
var lst : Array = []
for evt in events:
lst.append(evt.save_dict())
lst.append(evt.save())
d.events = lst
return d