From 33192fbf8d307a84bceac2bf2e632f27aa232261 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: Wed, 29 Apr 2026 22:09:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=AD=A6=E5=99=A8):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=AD=A6=E5=99=A8=E5=8F=82=E6=95=B0=E5=92=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=BC=B9=E5=8F=8D=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改Tree武器的攻击速率从0.25提升到1.0 - 移除Tree和PurpleCrystal的debugRebuild标志 - 修正Parrier弹反时的冲量计算公式 - 更新弹反子弹的目标定位为追踪锚点 - 完善PurpleCrystal场景结构和属性配置 --- components/Weapons/PurpleCrystal.tscn | 21 +++++++++++++-------- components/Weapons/Tree.tscn | 3 +-- scripts/Contents/Bullets/Parrier.gd | 4 ++-- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/components/Weapons/PurpleCrystal.tscn b/components/Weapons/PurpleCrystal.tscn index 21a6bfa..ce578ab 100644 --- a/components/Weapons/PurpleCrystal.tscn +++ b/components/Weapons/PurpleCrystal.tscn @@ -1,31 +1,36 @@ -[gd_scene load_steps=5 format=3 uid="uid://c0n3igy4hucrg"] +[gd_scene format=3 uid="uid://c0n3igy4hucrg"] [ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_hyubh"] [ext_resource type="Script" uid="uid://cfgdvytfnwe8l" path="res://scripts/Contents/Weapons/PurpleCrystal.gd" id="2_0xgcv"] [ext_resource type="Texture2D" uid="uid://16yhngg3jpun" path="res://resources/weapons/purple-crystal.svg" id="2_wgtcw"] [ext_resource type="AudioStream" uid="uid://dclinyhu256xi" path="res://resources/sounds/effect/Low Whoosh.mp3" id="4_16daa"] -[node name="PurpleCrystal" instance=ExtResource("1_hyubh")] +[node name="PurpleCrystal" unique_id=1991730660 instance=ExtResource("1_hyubh")] offset_bottom = 302.0 script = ExtResource("2_0xgcv") avatarTexture = ExtResource("2_wgtcw") displayName = "紫水晶簇" costBeachball = 200 +store = { +"atk": 0 +} descriptionTemplate = "发射[b]紫水晶[/b],撞击时造成$atk点伤害。" cooldown = 200.0 -debugRebuild = true -[node name="attack" parent="sounds" index="0"] +[node name="attack" parent="sounds" parent_id_path=PackedInt32Array(1775425991) index="0" unique_id=853583292] stream = ExtResource("4_16daa") -[node name="avatar" parent="container/info" index="0"] +[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("2_wgtcw") -[node name="beachball" parent="container/info/infos" index="1"] +[node name="beachball" parent="container/info/infos" parent_id_path=PackedInt32Array(492799150) index="1" unique_id=653442983] count = 200 -[node name="name" parent="container/info/displays" index="0"] +[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972] displayName = "紫水晶簇" -[node name="description" parent="container" index="2"] +[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682] text = "[center]发射[b]紫水晶[/b],撞击时造成[color=cyan]10[/color]点伤害。[/center]" + +[node name="tease" parent="container" parent_id_path=PackedInt32Array(575698869) index="3" unique_id=689277044] +visible = false diff --git a/components/Weapons/Tree.tscn b/components/Weapons/Tree.tscn index 6cdf73b..a21fdea 100644 --- a/components/Weapons/Tree.tscn +++ b/components/Weapons/Tree.tscn @@ -16,7 +16,7 @@ store = { "atk": 10, "count": 1.0, "max": 3.0, -"rate": 0.25 +"rate": 1.0 } storeType = { "atk": 1, @@ -44,7 +44,6 @@ descriptionTemplate = "进行[b]格挡[/b],化解飞来的子弹。 sources = Array[String](["Nine Sols", "Terraria"]) tease = "卸劲反伤" cooldown = 250.0 -debugRebuild = true [node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889] texture = ExtResource("3_nwamk") diff --git a/scripts/Contents/Bullets/Parrier.gd b/scripts/Contents/Bullets/Parrier.gd index 70ffd68..33ae0b6 100644 --- a/scripts/Contents/Bullets/Parrier.gd +++ b/scripts/Contents/Bullets/Parrier.gd @@ -38,11 +38,11 @@ func hitBullet(bullet: BulletBase): # 当前子弹与其他子弹相撞 eff.modulate = bullet.modulate.blend(bullet.texture.modulate) eff.rotation = position.angle_to_point(bullet.position) eff.shot() - launcher.impluse((position - bullet.position).normalized() * (bullet.speed * bullet.getDamage()) ** (1.0 / 3) * 250) + launcher.impluse((position - bullet.position).normalized() * bullet.speed ** (1.0 / 2) * 250) var targetBaseDamage = bullet.baseDamage # 弹反 还是 格挡? if MathTool.rate(reflectRate): - bullet.look_at(bullet.launcher.position) + bullet.look_at(bullet.launcher.getTrackingAnchor()) bullet.launcher = launcher bullet.baseDamage *= atk bullet.baseDamage *= reflectRate