Use GoalData for everything

This commit is contained in:
2026-03-21 12:11:38 +01:00
parent 52c23b194e
commit 471a7b10f7
15 changed files with 205 additions and 417 deletions

View File

@@ -2,6 +2,7 @@
[ext_resource type="Script" uid="uid://dnhocfsuvmeyb" path="res://core/generator/generator_buff_data.gd" id="1_d86db"]
[ext_resource type="Script" uid="uid://b00tqsuhxdy0d" path="res://core/generator/currency_generator_data.gd" id="1_s3g28"]
[ext_resource type="Resource" uid="uid://qyxct5gbrxwa" path="res://idles/goals/magic_total_30.tres" id="2_r2b8m"]
[resource]
script = ExtResource("1_s3g28")
@@ -9,6 +10,8 @@ id = &"Knowledge"
name = "Library"
starts_unlocked = false
starts_available = false
unlock_goal = ExtResource("2_r2b8m")
unlock_goal_behavior = 1
initial_cost = 60.0
initial_time = 3.0
initial_revenue = 60.0

View File

@@ -1,9 +0,0 @@
[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

@@ -1,9 +0,0 @@
[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")