Revamp goals as resources

This commit is contained in:
2026-03-19 23:46:24 +01:00
parent 3c8709c834
commit bcf228447d
25 changed files with 561 additions and 343 deletions

View File

@@ -0,0 +1,9 @@
[gd_resource type="Resource" script_class="GeneratorUnlockGoalData" format=3 uid="uid://mnuihnwb70ba"]
[ext_resource type="Script" uid="uid://dt4df3gwr6n5m" path="res://core/generator-unlock-goals/generator_unlock_goal_data.gd" id="1_hv2u1"]
[ext_resource type="Resource" uid="uid://qyxct5gbrxwa" path="res://idles/goals/magic_total_30.tres" id="2_7r0qe"]
[resource]
script = ExtResource("1_hv2u1")
target_generator_id = &"Knowledge"
goal = ExtResource("2_7r0qe")

View File

@@ -0,0 +1,9 @@
[gd_resource type="Resource" script_class="GeneratorUnlockGoalData" format=3 uid="uid://8wrqdjewfdq5"]
[ext_resource type="Script" uid="uid://dt4df3gwr6n5m" path="res://core/generator-unlock-goals/generator_unlock_goal_data.gd" id="1_phux3"]
[ext_resource type="Resource" uid="uid://bmlhoeasl7xor" path="res://idles/goals/magic_total_1300.tres" id="2_w06cq"]
[resource]
script = ExtResource("1_phux3")
target_generator_id = &"Wood"
goal = ExtResource("2_w06cq")

View File

@@ -0,0 +1,16 @@
[gd_resource type="Resource" script_class="GoalData" format=3 uid="uid://bmlhoeasl7xor"]
[ext_resource type="Script" uid="uid://dx4kmh33rrkpy" path="res://core/goals/goal_data.gd" id="1_b11ou"]
[ext_resource type="Script" uid="uid://r4js5eajolio" path="res://core/goals/goal_requirement_data.gd" id="2_d507t"]
[ext_resource type="Resource" uid="uid://brqaojindcxa5" path="res://idles/currencies/magic.tres" id="3_tu3fx"]
[sub_resource type="Resource" id="Resource_tvl3d"]
script = ExtResource("2_d507t")
currency = ExtResource("3_tu3fx")
amount_mantissa = 1.3
amount_exponent = 3
[resource]
script = ExtResource("1_b11ou")
id = &"magic_total_1300"
requirements = Array[ExtResource("2_d507t")]([SubResource("Resource_tvl3d")])

View File

@@ -0,0 +1,15 @@
[gd_resource type="Resource" script_class="GoalData" format=3 uid="uid://qyxct5gbrxwa"]
[ext_resource type="Script" uid="uid://dx4kmh33rrkpy" path="res://core/goals/goal_data.gd" id="1_rh4uj"]
[ext_resource type="Script" uid="uid://r4js5eajolio" path="res://core/goals/goal_requirement_data.gd" id="2_58n5q"]
[ext_resource type="Resource" uid="uid://brqaojindcxa5" path="res://idles/currencies/magic.tres" id="3_qm5e7"]
[sub_resource type="Resource" id="Resource_v4v16"]
script = ExtResource("2_58n5q")
currency = ExtResource("3_qm5e7")
amount_mantissa = 30.0
[resource]
script = ExtResource("1_rh4uj")
id = &"magic_total_30"
requirements = Array[ExtResource("2_58n5q")]([SubResource("Resource_v4v16")])