From 0571400cb20b27d9f3878ec34f7f93ebbc4b22de 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: Sun, 14 Dec 2025 15:29:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(MTY):=20=E5=A2=9E=E5=BC=BAMTY=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E7=9A=84=E6=94=BB=E5=87=BB=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将"猛冲"技能更名为"撕咬"并增加生命周期 - 为MTY添加新的攻击类型和冷却时间 - 调整MTY在普通波次中的生成参数 --- components/Bullets/MTYSprint.tscn | 3 ++- scripts/Contents/Characters/MTY.gd | 6 ++++-- scripts/Contents/Wave.gd | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/components/Bullets/MTYSprint.tscn b/components/Bullets/MTYSprint.tscn index 4723ee3..8b7bde4 100644 --- a/components/Bullets/MTYSprint.tscn +++ b/components/Bullets/MTYSprint.tscn @@ -9,9 +9,10 @@ height = 150.0 [node name="MTYSprint" instance=ExtResource("1_pwer0")] script = ExtResource("2_rion0") -displayName = "猛冲" +displayName = "撕咬" baseDamage = 5.0 penerate = 1.0 +lifeTime = 500.0 [node name="hitbox" parent="." index="1"] shape = SubResource("CapsuleShape2D_rion0") diff --git a/scripts/Contents/Characters/MTY.gd b/scripts/Contents/Characters/MTY.gd index cfbf0c0..ed41185 100644 --- a/scripts/Contents/Characters/MTY.gd +++ b/scripts/Contents/Characters/MTY.gd @@ -5,15 +5,17 @@ func register(): fields[FieldStore.Entity.MAX_HEALTH] = 400 fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.9 attackCooldownMap[0] = 1500 + attackCooldownMap[1] = 500 sprintMultiplier = 5 -func spawn(): - BulletBase.generate(ComponentManager.getBullet("MTYSprint"), self, position, 0) func ai(): PresetEntityAI.follow(self, currentFocusedBoss) tryAttack(0) + tryAttack(1) func attack(type: int): if type == 0: trySprint() + elif type == 1: + BulletBase.generate(ComponentManager.getBullet("MTYSprint"), self, position, 0) return true func sprint(): var target = BulletTool.findClosetBulletCanDamage(position, get_tree(), self) diff --git a/scripts/Contents/Wave.gd b/scripts/Contents/Wave.gd index 4635466..3f5cb49 100644 --- a/scripts/Contents/Wave.gd +++ b/scripts/Contents/Wave.gd @@ -27,7 +27,7 @@ static var WAVE_NORMAL = [ Wave.create("Hen", 1, 3, false, 0, INF, 1), Wave.create("Cat", 1, 3, false, 0, INF, 1), Wave.create("Dog", 1, 3, false, 0, INF, 1), - Wave.create("MTY", 0, 1, false, 0, INF, 4), + Wave.create("MTY", 0, 1, false, 4, INF, 5), Wave.create("Chick", 0, 0, true, 9, INF, 20), Wave.create("KukeMC", 0, 0, true, 19, INF, 20), Wave.create("Bear", 0, 0, true, 29, INF, 20),