mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 23:11:54 +08:00
19d87cae18
refactor(武器): 将攻击类型从VALUE改为INTEGER 调整大激光武器的能量消耗为200 style(界面): 更新武器卡牌文本显示为整数 移除调试标记和多余属性 fix(角色): 调整KukeChild的移动速度 移除KukeMC的射击偏移常量
19 lines
577 B
GDScript
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))
|