mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(MTY): 增强MTY角色的攻击能力
- 将"猛冲"技能更名为"撕咬"并增加生命周期 - 为MTY添加新的攻击类型和冷却时间 - 调整MTY在普通波次中的生成参数
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user