1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Characters/KukeChild.gd
T
fallingshrimp 0ab740a00a feat: 调整游戏平衡性和测试配置
- 提高重型水晶子弹的伤害值从20到30
- 移除玩家角色的无敌状态
- 调整KukeChild角色的攻击冷却时间
- 将默认波次从空波次改为测试BOSS波次
- 禁用自定义启动逻辑
2025-09-19 21:58:45 +08:00

23 lines
823 B
GDScript

extends EntityBase
var masterMine: KukeMC
func register():
fields[FieldStore.Entity.MAX_HEALTH] = 25
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.35
attackCooldownMap[0] = 100
attackCooldownMap[1] = 8000
func ai():
PresetEntityAI.follow(self, currentFocusedBoss, 700)
tryAttack(0)
tryAttack(1)
if timeLived() > 10000:
masterMine.tryHeal(100)
tryDie(null)
func attack(type):
if type == 0:
BulletBase.generate(preload("res://components/Bullets/PurpleCrystalSmall.tscn"), self, findWeaponAnchor("normal"), position.angle_to_point(currentFocusedBoss.position))
await TickTool.millseconds(randi_range(5, 25))
elif type == 1:
BulletBase.generate(preload("res://components/Bullets/BossAttack/KukeMC/HeavyCrystal.tscn"), self, findWeaponAnchor("normal"), position.angle_to_point(currentFocusedBoss.position))