From fb6263d7ec0103b0ecfbf15b4a52f7db3d8e457d 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: Fri, 1 May 2026 09:46:50 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=AD=A6=E5=99=A8=E7=B3=BB=E7=BB=9F):?= =?UTF-8?q?=20=E8=B0=83=E6=95=B4=E6=AD=A6=E5=99=A8=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=92=8C=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除BroomGun的基础伤害属性 - 调整EnergyBlock的最大生命值 - 优化Parrier的弹反冲力计算 - 修改Tree武器的攻击速率和伤害比例 - 更新Rooster的武器配置 --- components/Bullets/BroomGun.tscn | 1 - components/Characters/Rooster.tscn | 10 ++++++++-- components/Weapons/Tree.tscn | 6 +++--- scripts/Contents/Bullets/Parrier.gd | 2 +- scripts/Contents/Characters/EnergyBlock.gd | 2 +- scripts/Statemachine/EntityBase.gd | 1 + 6 files changed, 14 insertions(+), 8 deletions(-) diff --git a/components/Bullets/BroomGun.tscn b/components/Bullets/BroomGun.tscn index a654044..1d6fd9f 100644 --- a/components/Bullets/BroomGun.tscn +++ b/components/Bullets/BroomGun.tscn @@ -199,7 +199,6 @@ size = Vector2(1968, 44) [node name="BroomGun" unique_id=5571707 instance=ExtResource("1_7ykg5")] script = ExtResource("2_jn776") displayName = "扫帚炮" -baseDamage = 20.0 motionType = 2 penerate = 1.0 autoSpawnAnimation = true diff --git a/components/Characters/Rooster.tscn b/components/Characters/Rooster.tscn index 5227a71..7e4451b 100644 --- a/components/Characters/Rooster.tscn +++ b/components/Characters/Rooster.tscn @@ -2,9 +2,11 @@ [ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_e5pl8"] [ext_resource type="Script" uid="uid://cthtupc6dtbav" path="res://scripts/Contents/Characters/Rooster.gd" id="2_oqdqd"] -[ext_resource type="PackedScene" uid="uid://c0n3igy4hucrg" path="res://components/Weapons/PurpleCrystal.tscn" id="3_da2ca"] +[ext_resource type="PackedScene" uid="uid://c3crr8r7y3oho" path="res://components/Weapons/BlueCrystal.tscn" id="3_joj4g"] [ext_resource type="AudioStream" uid="uid://cdrevrq7n6yqa" path="res://resources/sounds/effect/Boing.mp3" id="4_66s6c"] +[ext_resource type="PackedScene" uid="uid://cx7nogfnv7s8t" path="res://components/Weapons/Tree.tscn" id="4_jluqw"] [ext_resource type="AudioStream" uid="uid://benyec5bqni0b" path="res://resources/sounds/effect/Chomp.wav" id="4_k0yme"] +[ext_resource type="PackedScene" uid="uid://bbrllsqjmx0ie" path="res://components/Weapons/DaoStatue.tscn" id="5_fkh3f"] [ext_resource type="AudioStream" uid="uid://dmxh3bpk8vyy5" path="res://resources/sounds/effect/Coin.mp3" id="5_xnbhq"] [ext_resource type="AudioStream" uid="uid://4wuuf1osk0yv" path="res://resources/sounds/effect/Low Boing.wav" id="6_m5px1"] [ext_resource type="Texture2D" uid="uid://fn8qx72clh38" path="res://resources/characters/cock/rooster-a.svg" id="8_da2ca"] @@ -101,7 +103,11 @@ process_material = SubResource("ParticleProcessMaterial_joj4g") [node name="weaponStore" parent="." index="2"] process_mode = 4 -[node name="PurpleCrystal" parent="weaponStore" index="0" unique_id=839753399 instance=ExtResource("3_da2ca")] +[node name="BlueCrystal" parent="weaponStore" index="0" unique_id=2047904399 instance=ExtResource("3_joj4g")] + +[node name="Tree" parent="weaponStore" index="1" unique_id=185228402 instance=ExtResource("4_jluqw")] + +[node name="DaoStatue" parent="weaponStore" index="2" unique_id=265403254 instance=ExtResource("5_fkh3f")] debugRebuild = false [node name="sprint" parent="sounds" index="0"] diff --git a/components/Weapons/Tree.tscn b/components/Weapons/Tree.tscn index a21fdea..50e7328 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": 1.0 +"rate": 0.25 } storeType = { "atk": 1, @@ -63,9 +63,9 @@ text = "Nine Sols × Terraria" text = "[center]进行[b]格挡[/b],化解飞来的子弹。 每成功格挡一次,获得一点[b]气力[/b]。 每拥有一点气力,增加[color=yellow]1[/color]点冲刺初速度,闪避穿过敌人时对其贴上一层[b]符咒[/b],符咒会自动引爆,召唤[b]乾坤剑[/b]穿透敌人。 -近战攻击造成乾坤剑的[color=cyan]25.0%[/color]点伤害。 +近战攻击造成乾坤剑的[color=cyan]100.0%[/color]点伤害。 -每次格挡有[color=cyan]25.0%[/color]的概率弹反,子弹弹反后造成乾坤剑的[color=cyan]25.0%[/color]伤害。 +每次格挡有[color=cyan]100.0%[/color]的概率弹反,子弹弹反后造成乾坤剑的[color=cyan]100.0%[/color]伤害。 每次格挡最多化解[color=cyan]1[/color]个子弹, 体内最多储存[color=cyan]3[/color]点气力。 每化解[color=yellow]1[/color]点伤害, diff --git a/scripts/Contents/Bullets/Parrier.gd b/scripts/Contents/Bullets/Parrier.gd index ff34088..28564b6 100644 --- a/scripts/Contents/Bullets/Parrier.gd +++ b/scripts/Contents/Bullets/Parrier.gd @@ -16,7 +16,7 @@ func parryEffect(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 ** (1.0 / 2) * 250) + launcher.impluse((position - bullet.position).normalized() * sqrt(abs(bullet.speed)) * 250) func penerateEffect(entity: EntityBase): parryiedTimes += 1 var eff = EffectController.create(ComponentManager.getEffect("ParryEntity"), position) diff --git a/scripts/Contents/Characters/EnergyBlock.gd b/scripts/Contents/Characters/EnergyBlock.gd index ac0838a..2d8dbb2 100644 --- a/scripts/Contents/Characters/EnergyBlock.gd +++ b/scripts/Contents/Characters/EnergyBlock.gd @@ -4,7 +4,7 @@ class_name EnergyBlockEntity var currentBroom: BroomBullet func register(): - fields[FieldStore.Entity.MAX_HEALTH] = 3000 + fields[FieldStore.Entity.MAX_HEALTH] = 1500 attackCooldownMap[0] = 6000 attackCooldownMap[1] = 3000 attackCooldownMap[2] = 8000 diff --git a/scripts/Statemachine/EntityBase.gd b/scripts/Statemachine/EntityBase.gd index 56aeb10..a49e5a2 100644 --- a/scripts/Statemachine/EntityBase.gd +++ b/scripts/Statemachine/EntityBase.gd @@ -219,6 +219,7 @@ func _physics_process(_delta: float) -> void: # 通用方法 func impluse(force: Vector2): + print(force) inertia += force func getOrCreateCycleTimer(timerName: String, period: float = 1000, distance: float = 200, start: bool = true) -> CycleTimer: if !cycleTimers.has(timerName):