From d3ac495ddb469015d1a1b2d5889db05c3413faa4 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, 17 Jan 2026 12:16:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B8=B8=E6=88=8F=E5=B9=B3=E8=A1=A1):=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=AD=A6=E5=99=A8=E5=92=8C=E6=8E=89=E8=90=BD?= =?UTF-8?q?=E7=89=A9=E5=93=81=E7=9A=84=E6=95=B0=E5=80=BC=E5=B9=B3=E8=A1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改链式机枪的攻击力从10降至3,能量消耗从0.3提升至1.0 - 增加物品掉落数量上限系数从2改为3 - 将公鸡角色的武器从VectorStar替换为ChainGun --- components/Characters/Rooster.tscn | 4 ++-- components/Weapons/ChainGun.tscn | 11 ++++------- scripts/Statemachine/EntityBase.gd | 2 +- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/components/Characters/Rooster.tscn b/components/Characters/Rooster.tscn index a629d0f..ca3d00f 100644 --- a/components/Characters/Rooster.tscn +++ b/components/Characters/Rooster.tscn @@ -2,7 +2,7 @@ [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://bb1uh8k7gkhr7" path="res://components/Weapons/VectorStar.tscn" id="3_s7kxe"] +[ext_resource type="PackedScene" uid="uid://dlaks67h2osms" path="res://components/Weapons/ChainGun.tscn" id="3_s7kxe"] [ext_resource type="AudioStream" uid="uid://cdrevrq7n6yqa" path="res://resources/sounds/effect/Boing.mp3" id="4_66s6c"] [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"] @@ -54,7 +54,7 @@ metadata/_edit_vertical_guides_ = [71.0] [node name="weaponStore" parent="." index="1"] process_mode = 4 -[node name="VectorStar" parent="weaponStore" index="0" instance=ExtResource("3_s7kxe")] +[node name="ChainGun" parent="weaponStore" index="0" instance=ExtResource("3_s7kxe")] [node name="sprint" parent="sounds" index="0"] stream = ExtResource("4_66s6c") diff --git a/components/Weapons/ChainGun.tscn b/components/Weapons/ChainGun.tscn index 9ec07ed..654dbb4 100644 --- a/components/Weapons/ChainGun.tscn +++ b/components/Weapons/ChainGun.tscn @@ -10,7 +10,7 @@ avatarTexture = ExtResource("2_ghn43") displayName = "链式机枪" costBeachball = 400 store = { -"atk": 10, +"atk": 3, "count": 1, "split": 30 } @@ -20,23 +20,20 @@ storeType = { "split": 1 } descriptionTemplate = "以$split单位的间隔发射$count个[b]微型水晶[/b],可造成$atk点伤害。" -needEnergy = 0.3 +needEnergy = 1.0 cooldown = 50.0 [node name="avatar" parent="container/info" index="0"] texture = ExtResource("2_ghn43") [node name="energy" parent="container/info/infos/energyInfo" index="1"] -text = "0.5" +text = "1.0" [node name="beachball" parent="container/info/infos" index="1"] count = 400 -[node name="soul" parent="container/info/infos" index="2"] -count = 1 - [node name="name" parent="container/info" index="2"] displayName = "链式机枪" [node name="description" parent="container" index="2"] -text = "[center]以[color=cyan]30[/color]单位的间隔发射[color=cyan]1[/color]个[b]微型水晶[/b],可造成[color=cyan]10[/color]点伤害。[/center]" +text = "[center]以[color=cyan]30[/color]单位的间隔发射[color=cyan]1[/color]个[b]微型水晶[/b],可造成[color=cyan]3[/color]点伤害。[/center]" diff --git a/scripts/Statemachine/EntityBase.gd b/scripts/Statemachine/EntityBase.gd index 699d34a..7b3b4d7 100644 --- a/scripts/Statemachine/EntityBase.gd +++ b/scripts/Statemachine/EntityBase.gd @@ -338,7 +338,7 @@ func tryDie(by: BulletBase = null): var item = drops[drop] var count = ceil(randf_range(dropCounts[drop].x, dropCounts[drop].y)) for i in range(count): - ItemDropped.generate(item, randi_range(1, 2 * round(sqrt(GameRule.difficulty - GameRule.difficultyRange.x + 1))), position + MathTool.randomVector2In(GameRule.itemDroppedSpawnOffset)) + ItemDropped.generate(item, randi_range(1, 3 * round(sqrt(GameRule.difficulty - GameRule.difficultyRange.x + 1))), position + MathTool.randomVector2In(GameRule.itemDroppedSpawnOffset)) if MathTool.rate( GameRule.appleDropRate + by.launcher.fields.get(FieldStore.Entity.DROP_APPLE_RATE) +