mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
refactor(Bullet): 移除ChickSprint的atk变量并简化伤害计算
调整Cat角色的攻击冷却时间和冲刺倍数 为BulletBase添加speedScale属性和setupCuttable方法 将Volcano的animator速度设置移至ai方法并应用speedScale
This commit is contained in:
@@ -4,16 +4,14 @@ class_name Maodie
|
||||
func register():
|
||||
fields[FieldStore.Entity.MAX_HEALTH] = 75
|
||||
fields[FieldStore.Entity.MOVEMENT_SPEED] = randf_range(0.5, 0.8)
|
||||
attackCooldownMap[0] = randi_range(2500, 6000)
|
||||
sprintMultiplier = randf_range(10, 35)
|
||||
attackCooldownMap[0] = randi_range(5000, 8000)
|
||||
sprintMultiplier = randf_range(5, 15)
|
||||
func ai():
|
||||
PresetEntityAI.follow(self, currentFocusedBoss)
|
||||
tryAttack(0, true)
|
||||
func attack(type: int):
|
||||
if type == 0:
|
||||
for bullet in BulletBase.generate(ComponentManager.getBullet("ChickSprint"), self, position, 0):
|
||||
if bullet is ChickSprint:
|
||||
bullet.atk = 0.01
|
||||
BulletBase.generate(ComponentManager.getBullet("ChickSprint"), self, position, 0)
|
||||
trySprint()
|
||||
return true
|
||||
func sprint():
|
||||
|
||||
Reference in New Issue
Block a user