From c6ff68541b3cc9c9c2a57585d81fea8a867c0e10 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: Sat, 29 Nov 2025 21:39:56 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=B0=83=E6=95=B4=E6=AD=A6?= =?UTF-8?q?=E5=99=A8=E5=92=8C=E5=8F=AC=E5=94=A4=E7=89=A9=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=8F=8A=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除LGBTFlag的最大生命值设置 - 调整HJM武器的伤害和时间系数 - 修改Arrow子弹的轨迹参数 - 将BulletBase的伤害计算从initialDamage改为baseDamage - 简化LGBTWeapon的召唤参数 - 提升Bow武器的攻击力和降低能量消耗 - 调整HJM武器的属性和描述 - 更新Rooster角色的武器配置 --- components/Bullets/Arrow.tscn | 2 +- components/Characters/Rooster.tscn | 8 ++++---- components/Weapons/Bow.tscn | 7 +++---- components/Weapons/HJM.tscn | 15 +++++++++------ scripts/Contents/Summons/LGBTFlag.gd | 1 - scripts/Contents/Weapons/HJM.gd | 2 +- scripts/Contents/Weapons/LGBTWeapon.gd | 2 +- scripts/Statemachine/BulletBase.gd | 2 +- 8 files changed, 20 insertions(+), 19 deletions(-) diff --git a/components/Bullets/Arrow.tscn b/components/Bullets/Arrow.tscn index 40e7924..839e7db 100644 --- a/components/Bullets/Arrow.tscn +++ b/components/Bullets/Arrow.tscn @@ -61,7 +61,7 @@ tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "handle_modes": PackedInt32Array(0, 2), -"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0, 200, -0.16666667, -33.333336, 0, 0), +"points": PackedFloat32Array(0, 0, 0, 0, 0, 200, -1, 0, 0, 0), "times": PackedFloat32Array(0, 1) } tracks/1/type = "bezier" diff --git a/components/Characters/Rooster.tscn b/components/Characters/Rooster.tscn index 5c24fc3..28a079f 100644 --- a/components/Characters/Rooster.tscn +++ b/components/Characters/Rooster.tscn @@ -2,10 +2,10 @@ [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://wl8u5m52708w" path="res://components/Weapons/LGBT.tscn" id="3_0omr3"] [ext_resource type="AudioStream" uid="uid://dclinyhu256xi" path="res://resources/sounds/effect/Low Whoosh.mp3" id="3_4syso"] [ext_resource type="AudioStream" uid="uid://cdrevrq7n6yqa" path="res://resources/sounds/effect/Boing.mp3" id="4_66s6c"] -[ext_resource type="PackedScene" uid="uid://u0djqwuuysp8" path="res://components/Weapons/Volcano.tscn" id="4_jluqw"] -[ext_resource type="PackedScene" uid="uid://cxabqjo7skxev" path="res://components/Weapons/BigLaser.tscn" id="4_joj4g"] +[ext_resource type="PackedScene" uid="uid://dbxu15g1pd3cx" path="res://components/Weapons/HJM.tscn" id="4_joj4g"] [ext_resource type="AudioStream" uid="uid://benyec5bqni0b" path="res://resources/sounds/effect/Chomp.wav" id="4_k0yme"] [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"] @@ -57,9 +57,9 @@ metadata/_edit_vertical_guides_ = [71.0] [node name="weaponStore" parent="." index="1"] process_mode = 4 -[node name="Volcano" parent="weaponStore" index="0" instance=ExtResource("4_jluqw")] +[node name="LGBT" parent="weaponStore" index="0" instance=ExtResource("3_0omr3")] -[node name="BigLaser" parent="weaponStore" index="1" instance=ExtResource("4_joj4g")] +[node name="HJM" parent="weaponStore" index="1" instance=ExtResource("4_joj4g")] [node name="sprint" parent="sounds" index="0"] stream = ExtResource("4_66s6c") diff --git a/components/Weapons/Bow.tscn b/components/Weapons/Bow.tscn index e30d339..fd4daca 100644 --- a/components/Weapons/Bow.tscn +++ b/components/Weapons/Bow.tscn @@ -11,7 +11,7 @@ displayName = "鸡毛弓" quality = 2 costBeachball = 50 store = { -"atk": 2, +"atk": 5, "count": 1, "self": 1.0 } @@ -21,9 +21,8 @@ storeType = { "self": 1 } descriptionTemplate = "消耗$self点生命值,发射$count支[b]鸡毛箭[/b],每支造成当前飞行速度的$atk伤害。" -needEnergy = 40.0 +needEnergy = 15.0 cooldown = 500.0 -debugRebuild = true [node name="avatar" parent="container/info" index="0"] texture = ExtResource("2_ex3jl") @@ -42,4 +41,4 @@ displayName = "鸡毛弓" quality = 2 [node name="description" parent="container" index="2"] -text = "[center]消耗[color=cyan]1[/color]点生命值,发射[color=cyan]1[/color]支[b]鸡毛箭[/b],每支造成当前飞行速度的[color=cyan]200%[/color]伤害。[/center]" +text = "[center]消耗[color=cyan]1[/color]点生命值,发射[color=cyan]1[/color]支[b]鸡毛箭[/b],每支造成当前飞行速度的[color=cyan]500%[/color]伤害。[/center]" diff --git a/components/Weapons/HJM.tscn b/components/Weapons/HJM.tscn index 5310836..2f048d1 100644 --- a/components/Weapons/HJM.tscn +++ b/components/Weapons/HJM.tscn @@ -8,11 +8,12 @@ script = ExtResource("2_2in6n") avatarTexture = ExtResource("2_74sfb") displayName = "耄耋" -typeTopic = 2 +quality = 0 +typeTopic = 3 costBeachball = 600 store = { -"atk": 10, -"time": 0.2 +"atk": 5, +"time": 0.3 } storeType = { "atk": 1, @@ -21,12 +22,13 @@ storeType = { descriptionTemplate = "召唤[b]抓狂的哈基米[/b],跟踪敌人,每$time秒造成$atk点伤害。" needEnergy = 60.0 cooldown = 1000.0 +debugRebuild = true [node name="avatar" parent="container/info" index="0"] texture = ExtResource("2_74sfb") [node name="energy" parent="container/info/infos/energyInfo" index="1"] -text = "100.0" +text = "60.0" [node name="beachball" parent="container/info/infos" index="1"] count = 600 @@ -36,7 +38,8 @@ count = 1 [node name="name" parent="container/info" index="2"] displayName = "耄耋" -typeTopic = 2 +quality = 0 +typeTopic = 3 [node name="description" parent="container" index="2"] -text = "[center]召唤[b]抓狂的哈基米[/b],跟踪敌人,每[color=cyan]0.20[/color]秒造成[color=cyan]10[/color]点伤害。[/center]" +text = "[center]召唤[b]抓狂的哈基米[/b],跟踪敌人,每[color=cyan]0.30[/color]秒造成[color=cyan]5[/color]点伤害。[/center]" diff --git a/scripts/Contents/Summons/LGBTFlag.gd b/scripts/Contents/Summons/LGBTFlag.gd index d3d05e5..d5864cc 100644 --- a/scripts/Contents/Summons/LGBTFlag.gd +++ b/scripts/Contents/Summons/LGBTFlag.gd @@ -6,7 +6,6 @@ var count: int = 0 var angle: float = 0 func register(): - fields[FieldStore.Entity.MAX_HEALTH] = 200 attackCooldownMap[0] = 1000 func ai(): tryAttack(0) diff --git a/scripts/Contents/Weapons/HJM.gd b/scripts/Contents/Weapons/HJM.gd index 2df2b7e..65a5b77 100644 --- a/scripts/Contents/Weapons/HJM.gd +++ b/scripts/Contents/Weapons/HJM.gd @@ -2,7 +2,7 @@ extends Weapon func update(to: int, origin: Dictionary, _entity: EntityBase): - origin["time"] /= 1 + 0.05 * to * soulLevel + origin["time"] /= 1 + 0.01 * to * soulLevel origin["atk"] += 2 * to * soulLevel return origin func attack(entity: EntityBase): diff --git a/scripts/Contents/Weapons/LGBTWeapon.gd b/scripts/Contents/Weapons/LGBTWeapon.gd index 23db512..a5046ca 100644 --- a/scripts/Contents/Weapons/LGBTWeapon.gd +++ b/scripts/Contents/Weapons/LGBTWeapon.gd @@ -10,7 +10,7 @@ func update(to: int, origin: Dictionary, _entity: EntityBase): origin["trace"] += 0.05 * to * soulLevel return origin func attack(entity: EntityBase): - var summon = entity.summon(ComponentManager.getSummon("LGBTFlag"), true, false) + var summon = entity.summon(ComponentManager.getSummon("LGBTFlag")) summon.atk = readStore("atk") summon.maxTraceTime = readStore("trace") * 1000 summon.tracePower = readStore("power") diff --git a/scripts/Statemachine/BulletBase.gd b/scripts/Statemachine/BulletBase.gd index 88a4595..3cb42c5 100644 --- a/scripts/Statemachine/BulletBase.gd +++ b/scripts/Statemachine/BulletBase.gd @@ -101,7 +101,7 @@ func setupCuttable(cutSpeed: float): speedScale = 1 ) func getDamage(): - return initialDamage * damageMultipliers[usingDamageMultiplier] + return baseDamage * damageMultipliers[usingDamageMultiplier] func hit(target: Node): var entity: EntityBase = EntityTool.fromHurtbox(target) if !entity || !launcher: return