mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-01 17:01:53 +08:00
feat(战斗系统): 调整KukeMC的攻击逻辑和紫水晶子弹
为KukeMC角色减少召唤子体数量但增加紫水晶子弹数量,优化战斗节奏 添加紫水晶子弹的显示名称 移除PurpleCrystal类名定义 在EntityBase中新增died信号
This commit is contained in:
@@ -5,13 +5,15 @@ func register():
|
||||
fields[FieldStore.Entity.MAX_HEALTH] = 2500
|
||||
fields[FieldStore.Entity.OFFSET_SHOOT] = 25
|
||||
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.5
|
||||
attackCooldownMap[0] = 8000
|
||||
attackCooldownMap[1] = 10000
|
||||
attackCooldownMap[0] = 4000
|
||||
attackCooldownMap[1] = 6000
|
||||
func spawn():
|
||||
for i in 5:
|
||||
var child = EntityBase.generate(preload("res://components/Characters/KukeChild.tscn"), position + MathTool.randv2_range(500))
|
||||
for i in 3:
|
||||
var child = EntityBase.generate(load("res://components/Characters/KukeChild.tscn"), position + MathTool.randv2_range(500))
|
||||
child.currentFocusedBoss = currentFocusedBoss
|
||||
child.masterMine = self
|
||||
for i in 20:
|
||||
BulletBase.generate(preload("res://components/Bullets/PurpleCrystal.tscn"), self, findWeaponAnchor("normal"), deg_to_rad(randf_range(0, 360)))
|
||||
func ai():
|
||||
PresetEntityAI.follow(self, currentFocusedBoss, 500)
|
||||
for bullet in get_tree().get_nodes_in_group("bullets"):
|
||||
|
||||
Reference in New Issue
Block a user