From 46a22307d6930c4c11e66d3b2832b130ca4ca731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Tue, 30 Sep 2025 19:06:18 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Debug):=20=E6=B8=85=E7=90=86=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E7=BB=84=E4=BB=B6=E5=B9=B6=E8=B0=83=E6=95=B4=E9=A5=B2?= =?UTF-8?q?=E6=96=99=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除未使用的调试场景文件 简化FeedFilter组件配置 调整草莓和幸运签语饼的数值配置 --- components/Debug/FeedFilter.tscn | 7 ++----- components/Debug/FeedHasField.tscn | 9 --------- components/Debug/FeedIsTypeTopic.tscn | 9 --------- components/Feeds/LuckyCookie.tscn | 5 +++-- components/Feeds/Strawberry.tscn | 2 +- scripts/Debug/FeedFilter.gd | 2 +- 6 files changed, 7 insertions(+), 27 deletions(-) delete mode 100644 components/Debug/FeedHasField.tscn delete mode 100644 components/Debug/FeedIsTypeTopic.tscn diff --git a/components/Debug/FeedFilter.tscn b/components/Debug/FeedFilter.tscn index 3bfc329..15143b0 100644 --- a/components/Debug/FeedFilter.tscn +++ b/components/Debug/FeedFilter.tscn @@ -1,11 +1,8 @@ -[gd_scene load_steps=2 format=3 uid="uid://feedfiltercombined"] +[gd_scene load_steps=2 format=3 uid="uid://hkxs56a5rcvv"] [ext_resource type="Script" path="res://scripts/Debug/FeedFilter.gd" id="1_feedfilter"] [node name="FeedFilter" type="HBoxContainer"] theme_override_constants/separation = 0 script = ExtResource("1_feedfilter") -targetFields = Array[int]([]) -targetTopics = Array[int]([]) -composeMode = 0 -clickToRefresh = false \ No newline at end of file +targetFields = Array[int]([14]) diff --git a/components/Debug/FeedHasField.tscn b/components/Debug/FeedHasField.tscn deleted file mode 100644 index 94a6566..0000000 --- a/components/Debug/FeedHasField.tscn +++ /dev/null @@ -1,9 +0,0 @@ -[gd_scene load_steps=2 format=3 uid="uid://clm14a8gnikte"] - -[ext_resource type="Script" path="res://scripts/Debug/FeedHasField.gd" id="1_7leag"] - -[node name="FeedHasField" type="HBoxContainer"] -theme_override_constants/separation = 0 -script = ExtResource("1_7leag") -targetFields = Array[int]([25]) -composeMode = 1 diff --git a/components/Debug/FeedIsTypeTopic.tscn b/components/Debug/FeedIsTypeTopic.tscn deleted file mode 100644 index f5da115..0000000 --- a/components/Debug/FeedIsTypeTopic.tscn +++ /dev/null @@ -1,9 +0,0 @@ -[gd_scene load_steps=2 format=3 uid="uid://5fbadcha65g4"] - -[ext_resource type="Script" path="res://scripts/Debug/FeedIsTopic.gd" id="1_2hikw"] - -[node name="Debug" type="HBoxContainer"] -theme_override_constants/separation = 0 -script = ExtResource("1_2hikw") -targetTopics = Array[int]([2]) -clickToRefresh = true diff --git a/components/Feeds/LuckyCookie.tscn b/components/Feeds/LuckyCookie.tscn index b9ed6ff..a616826 100644 --- a/components/Feeds/LuckyCookie.tscn +++ b/components/Feeds/LuckyCookie.tscn @@ -8,8 +8,8 @@ avatarTexture = ExtResource("2_or0st") displayName = "幸运签语饼" quality = 2 topic = 5 -fields = Array[int]([14, 4, 6, 18]) -fieldValues = Array[float]([0.02, 0.03, 0.04, 2.0]) +fields = Array[int]([18]) +fieldValues = Array[float]([2.0]) costs = Array[int]([0, 1]) costCounts = Array[int]([400, 375]) @@ -19,3 +19,4 @@ texture = ExtResource("2_or0st") [node name="name" parent="container/info" index="1"] displayName = "幸运签语饼" quality = 2 +topic = 5 diff --git a/components/Feeds/Strawberry.tscn b/components/Feeds/Strawberry.tscn index f5b4c06..b88877d 100644 --- a/components/Feeds/Strawberry.tscn +++ b/components/Feeds/Strawberry.tscn @@ -8,7 +8,7 @@ avatarTexture = ExtResource("2_82amy") displayName = "草莓" quality = 3 fields = Array[int]([14]) -fieldValues = Array[float]([0.1]) +fieldValues = Array[float]([0.04]) costs = Array[int]([1]) costCounts = Array[int]([400]) diff --git a/scripts/Debug/FeedFilter.gd b/scripts/Debug/FeedFilter.gd index 4f40463..9feeca1 100644 --- a/scripts/Debug/FeedFilter.gd +++ b/scripts/Debug/FeedFilter.gd @@ -67,4 +67,4 @@ func checkTopicCondition(feed: Feed) -> bool: passed = haveThis if passed: break - return passed \ No newline at end of file + return passed