From 38d32223161e32c1711e1d6154a190416dc45441 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, 22 Nov 2025 23:01:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=AD=A6=E5=99=A8/=E8=A7=92=E8=89=B2):=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=81=AB=E5=B1=B1=E6=AD=A6=E5=99=A8=E4=BC=A4?= =?UTF-8?q?=E5=AE=B3=E6=95=B0=E5=80=BC=E5=B9=B6=E6=B7=BB=E5=8A=A0=E6=96=B0?= =?UTF-8?q?=E6=AD=A6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 提升火山武器的基础攻击力和各段伤害比例 - 为角色添加BigLaser新武器 - 调整KukeMC角色的子弹伤害计算逻辑 --- components/Characters/Rooster.tscn | 6 ++++-- components/Weapons/Volcano.tscn | 11 ++++++----- scripts/Contents/Characters/KukeMC.gd | 8 ++++++-- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/components/Characters/Rooster.tscn b/components/Characters/Rooster.tscn index 1a1a092..5c24fc3 100644 --- a/components/Characters/Rooster.tscn +++ b/components/Characters/Rooster.tscn @@ -1,10 +1,11 @@ -[gd_scene load_steps=14 format=3 uid="uid://bm7ymrri6pykb"] +[gd_scene load_steps=15 format=3 uid="uid://bm7ymrri6pykb"] [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="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="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,7 +58,8 @@ metadata/_edit_vertical_guides_ = [71.0] process_mode = 4 [node name="Volcano" parent="weaponStore" index="0" instance=ExtResource("4_jluqw")] -debugRebuild = false + +[node name="BigLaser" parent="weaponStore" index="1" instance=ExtResource("4_joj4g")] [node name="sprint" parent="sounds" index="0"] stream = ExtResource("4_66s6c") diff --git a/components/Weapons/Volcano.tscn b/components/Weapons/Volcano.tscn index 1822dd4..c1a7059 100644 --- a/components/Weapons/Volcano.tscn +++ b/components/Weapons/Volcano.tscn @@ -13,13 +13,13 @@ quality = 4 typeTopic = 2 costBeachball = 300 store = { -"atk": 10.0, +"atk": 15.0, "count": 2.0, "dmg1": 1.0, "dmg2": 0.75, -"dmg3": 1.5, -"dmg4": 1.25, -"dmg5": 0.6, +"dmg3": 2.0, +"dmg4": 2.25, +"dmg5": 0.9, "rotate": 0.05 } storeType = { @@ -34,6 +34,7 @@ storeType = { } descriptionTemplate = "召唤1支[b]火山[/b],以$rotate的效率跟随鼠标指向,进行基础伤害为$atk的4段挥舞攻击。造成的伤害分别为$dmg1,$dmg2,$dmg3,$dmg4,第4段攻击时发射$count支[b]火山幻影[/b],造成$dmg5伤害。" cooldown = 1750.0 +debugRebuild = true [node name="avatar" parent="container/info" index="0"] texture = ExtResource("2_hh01t") @@ -50,4 +51,4 @@ quality = 4 typeTopic = 2 [node name="description" parent="container" index="2"] -text = "[center]召唤1支[b]火山[/b],以[color=cyan]5%[/color]的效率跟随鼠标指向,进行基础伤害为[color=cyan]10[/color]的4段挥舞攻击。造成的伤害分别为[color=cyan]100%[/color],[color=cyan]75%[/color],[color=cyan]150%[/color],[color=cyan]125%[/color],第4段攻击时发射[color=cyan]2[/color]支[b]火山幻影[/b],造成[color=cyan]25%[/color]伤害。[/center]" +text = "[center]召唤1支[b]火山[/b],以[color=cyan]5%[/color]的效率跟随鼠标指向,进行基础伤害为[color=cyan]15[/color]的4段挥舞攻击。造成的伤害分别为[color=cyan]100%[/color],[color=cyan]75%[/color],[color=cyan]200%[/color],[color=cyan]225%[/color],第4段攻击时发射[color=cyan]2[/color]支[b]火山幻影[/b],造成[color=cyan]90%[/color]伤害。[/center]" diff --git a/scripts/Contents/Characters/KukeMC.gd b/scripts/Contents/Characters/KukeMC.gd index ccc09ec..f345026 100644 --- a/scripts/Contents/Characters/KukeMC.gd +++ b/scripts/Contents/Characters/KukeMC.gd @@ -28,7 +28,9 @@ func attack(type): if type == 0: for i in randi_range(8, 16): fields[FieldStore.Entity.OFFSET_SHOOT] = 25 - BulletBase.generate(ComponentManager.getBullet("PurpleCrystal"), self, findWeaponAnchor("normal"), position.angle_to_point(currentFocusedBoss.position)) + for bullet in BulletBase.generate(ComponentManager.getBullet("PurpleCrystal"), self, findWeaponAnchor("normal"), position.angle_to_point(currentFocusedBoss.position)): + if bullet is BulletBase: + bullet.baseDamage *= 0.5 await TickTool.millseconds(randi_range(10, 50)) elif type == 1 and health < fields[FieldStore.Entity.MAX_HEALTH] * 0.5 and canSummon: for i in randi_range(1, 2): @@ -41,7 +43,9 @@ func attack(type): for bulletIndex in countOfBullet: for branchIndex in countOfBranch: fields[FieldStore.Entity.OFFSET_SHOOT] = 0 - BulletBase.generate(ComponentManager.getBullet("PurpleCrystal"), self, findWeaponAnchor("normal"), deg_to_rad(360.0 / countOfBullet * bulletIndex + 360.0 / countOfBranch * branchIndex)) + for bullet in BulletBase.generate(ComponentManager.getBullet("PurpleCrystal"), self, findWeaponAnchor("normal"), deg_to_rad(360.0 / countOfBullet * bulletIndex + 360.0 / countOfBranch * branchIndex)): + if bullet is BulletBase: + bullet.baseDamage *= 0.5 await TickTool.millseconds(100) elif type == 3: BulletBase.generate(ComponentManager.getBullet("HeavyCrystal"), self, findWeaponAnchor("normal"), position.angle_to_point(currentFocusedBoss.position))