Add tyny sword gym to docs
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
extends Node
|
||||
|
||||
## Auto-discovers and registers all buff resources from res://sandbox/buffs/
|
||||
## Auto-discovers and registers all buff resources from res://docs/gyms/buffs/
|
||||
|
||||
const BUFF_DIRECTORY_PATH: String = "res://sandbox/buffs"
|
||||
const BUFF_DIRECTORY_PATH: String = "res://docs/gyms/buffs"
|
||||
|
||||
var _buff_by_id: Dictionary = {}
|
||||
var _initialized: bool = false
|
||||
|
||||
@@ -7,7 +7,7 @@ extends Node
|
||||
#1: GEMS_CURRENCY_ID,
|
||||
#}
|
||||
|
||||
const CURRENCY_DIRECTORY_PATH: String = "res://sandbox/currencies"
|
||||
const CURRENCY_DIRECTORY_PATH: String = "res://docs/gyms/currencies"
|
||||
const CURRENCY_RESOURCE_EXTENSIONS: PackedStringArray = ["tres", "res"]
|
||||
|
||||
var _currency_by_id: Dictionary = {}
|
||||
|
||||
@@ -1036,7 +1036,7 @@ func _initialize_goals() -> void:
|
||||
|
||||
func _discover_goal_paths() -> PackedStringArray:
|
||||
var result: PackedStringArray = []
|
||||
const GOAL_DIRECTORY_PATH: String = "res://sandbox/goals"
|
||||
const GOAL_DIRECTORY_PATH: String = "res://docs/gyms/goals"
|
||||
const GOAL_RESOURCE_EXTENSIONS: PackedStringArray = ["tres", "res"]
|
||||
|
||||
var directory: DirAccess = DirAccess.open(GOAL_DIRECTORY_PATH)
|
||||
@@ -1174,7 +1174,7 @@ func _migrate_goals_from_version_2(parsed_data: Dictionary) -> void:
|
||||
_goal_completed[goal_id] = false
|
||||
|
||||
func _load_generator_data_from_id(generator_id: String) -> CurrencyGeneratorData:
|
||||
const GENERATORS_DIRECTORY_PATH: String = "res://sandbox/generators"
|
||||
const GENERATORS_DIRECTORY_PATH: String = "res://docs/gyms/generators"
|
||||
const GENERATOR_RESOURCE_EXTENSIONS: PackedStringArray = ["tres", "res"]
|
||||
|
||||
var directory: DirAccess = DirAccess.open(GENERATORS_DIRECTORY_PATH)
|
||||
|
||||
@@ -33,7 +33,7 @@ var last_reset_time: int = 0
|
||||
|
||||
func _ready() -> void:
|
||||
if config == null:
|
||||
config = load("res://sandbox/prestige/primary_prestige.tres") as Resource
|
||||
config = load("res://docs/gyms/prestige/primary_prestige.tres") as Resource
|
||||
|
||||
if not _is_config_valid():
|
||||
push_warning("PrestigeManager has invalid or missing config; prestige is disabled.")
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://dmsmmgtbrul1t" path="res://core/prestige/prestige_panel.gd" id="1_panel"]
|
||||
[ext_resource type="PackedScene" path="res://core/prestige/prestige_progress_bar.tscn" id="2_7b6yg"]
|
||||
[ext_resource type="Resource" uid="uid://dwmfvmusfskk6" path="res://docs/gyms/prestige/primary_prestige.tres" id="3_r8h5p"]
|
||||
|
||||
[node name="PrestigePanel" type="PanelContainer" unique_id=789062217]
|
||||
offset_right = 420.0
|
||||
@@ -61,6 +62,7 @@ text = "-"
|
||||
|
||||
[node name="PrestigeProgressBar" parent="MarginContainer/VBoxContainer" unique_id=619882824 instance=ExtResource("2_7b6yg")]
|
||||
layout_mode = 2
|
||||
config = ExtResource("3_r8h5p")
|
||||
|
||||
[node name="Buttons" type="HBoxContainer" parent="MarginContainer/VBoxContainer" unique_id=634533362]
|
||||
layout_mode = 2
|
||||
|
||||
Reference in New Issue
Block a user