mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
6d74bed227
- 将DamageLabel的伤害值计算从round改为ceil,确保最小伤害为1 - 调整KukeChild的攻击冷却时间从100降低到50,并添加伤害倍率0.1 - 提高PurpleCrystalSmall子弹速度从12到15,缩小尺寸从0.8到0.6 - 缩短KukeMC技能冷却时间并增加召唤数量 - 更新测试波次配置,移除Chick和Bear
21 lines
672 B
GDScript
21 lines
672 B
GDScript
extends EntityBase
|
|
|
|
var masterMine: KukeMC
|
|
|
|
func register():
|
|
fields[FieldStore.Entity.MAX_HEALTH] = 25
|
|
fields[FieldStore.Entity.OFFSET_SHOOT] = 5
|
|
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.25
|
|
fields[FieldStore.Entity.DAMAGE_MULTIPILER] = 0.1
|
|
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))
|