1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Characters/Cat.gd
T
fallingshrimp b1e25afb02 fix(角色平衡): 调整多个角色的移动速度和攻击冷却时间
修改MTY、Dog、Cat和Hen角色的移动速度参数,降低部分角色的速度以平衡游戏性
调整Dog和Hen的攻击冷却时间范围,使战斗节奏更合理
简化Hen的攻击逻辑,移除随机子弹数量生成
2026-05-10 23:00:47 +08:00

21 lines
621 B
GDScript

extends EntityBase
class_name Maodie
func register():
fields[FieldStore.Entity.MAX_HEALTH] = 75
fields[FieldStore.Entity.MOVEMENT_SPEED] = randf_range(0.4, 0.65)
attackCooldownMap[0] = randi_range(5000, 8000)
sprintMultiplier = randf_range(5, 15)
func spawn():
texture.play("walk")
func ai():
PresetEntityAI.follow(self , currentFocusedBoss)
tryAttack(0, true)
func attack(type: int):
if type == 0:
BulletBase.generate(ComponentManager.getBullet("ChickSprint"), self , position, 0)
trySprint()
return true
func sprint():
move((currentFocusedBoss.position - position).normalized() * sprintMultiplier, true)