1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 23:11:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Characters/KukeChild.gd
T
fallingshrimp 19d87cae18 feat(角色): 添加KukeMC的重型水晶攻击和环形着色器
refactor(武器): 将攻击类型从VALUE改为INTEGER
调整大激光武器的能量消耗为200

style(界面): 更新武器卡牌文本显示为整数
移除调试标记和多余属性

fix(角色): 调整KukeChild的移动速度
移除KukeMC的射击偏移常量
2025-09-17 22:25:27 +08:00

19 lines
577 B
GDScript

extends EntityBase
var masterMine: KukeMC
func register():
fields[FieldStore.Entity.MAX_HEALTH] = 25
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.35
attackCooldownMap[0] = 50
func ai():
PresetEntityAI.follow(self, currentFocusedBoss, 700)
tryAttack(0)
if timeLived() > 8000:
masterMine.tryHeal(50)
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))