More work on dialogue, portraits, customizer and intro
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
extends Node
|
||||
|
||||
var player_data : Adventurer = null
|
||||
var player : Player = null
|
||||
var panel : GamePanel = null
|
||||
var player_profile : Window = null
|
||||
@@ -11,6 +12,8 @@ var end_shift_confirm_template = preload("res://templates/end_shift_confirmation
|
||||
var player_profile_template = preload("res://templates/player_profile_window.tscn")
|
||||
var last_screenshot : Image
|
||||
func _ready() -> void:
|
||||
player_data = Adventurer.new()
|
||||
Quest.load_quest_list()
|
||||
DisplayServer.register_additional_output(self)
|
||||
end_shift_confirmation = end_shift_confirm_template.instantiate()
|
||||
add_child(end_shift_confirmation)
|
||||
@@ -88,8 +91,9 @@ func test_save() -> void:
|
||||
save_dict["guildname"] = Guild.name
|
||||
save_dict["guildlevel"] = Guild.level
|
||||
#Save the player data
|
||||
save_dict["playername"] = player.data.full_name()
|
||||
save_dict["playerlevel"] = player.data.level
|
||||
if player:
|
||||
save_dict["playername"] = player.data.full_name()
|
||||
save_dict["playerlevel"] = player.data.level
|
||||
#Save the employee data
|
||||
#Save the adventurer data
|
||||
#Save the quest data
|
||||
@@ -133,3 +137,9 @@ func switch_scenes(scene_name : String) -> void:
|
||||
|
||||
func switch_dialogue(timeline_name : String, label : String) -> void:
|
||||
Dialogic.start("res://dialogic/timelines/" + timeline_name + ".dtl", label)
|
||||
|
||||
func save_quests(save_dict : Dictionary) -> void:
|
||||
var lst = []
|
||||
for quest in Guild.quests:
|
||||
lst.append(quest.save_dict())
|
||||
save_dict.quests = lst
|
||||
|
||||
Reference in New Issue
Block a user