mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-01 17:01:53 +08:00
feat(战斗系统): 添加内伤机制和爆炸类型子弹
为子弹系统添加新的爆炸类型(MotionType.EXPLOSION) 实现内伤机制,包括内伤子弹和相关逻辑 修改多个子弹场景以使用爆炸类型 调整格挡系统,增加内伤效果 更新武器描述和角色配置
This commit is contained in:
@@ -17,11 +17,11 @@ func register():
|
||||
sprintMultiplier = 30
|
||||
func ai():
|
||||
PresetEntityAI.distanceAttack(self , currentFocusedBoss, 0, 300, 0)
|
||||
# PresetEntityAI.distanceAttack(self , currentFocusedBoss, 500, 1000, 1)
|
||||
# for i in 5:
|
||||
# tryAttack(i + 2, [3, 4])
|
||||
# if 1 not in attackingStates:
|
||||
# PresetEntityAI.follow(self , currentFocusedBoss, 200)
|
||||
PresetEntityAI.distanceAttack(self , currentFocusedBoss, 500, 1000, 1)
|
||||
for i in 5:
|
||||
tryAttack(i + 2, [3, 4])
|
||||
if 1 not in attackingStates:
|
||||
PresetEntityAI.follow(self , currentFocusedBoss, 200)
|
||||
func attack(type: int):
|
||||
if type == 0:
|
||||
for bullet in BulletBase.generate(ComponentManager.getBullet("SwingSword"), self , getTrackingAnchor(), getTrackingAnchor().angle_to_point(currentFocusedPosition)):
|
||||
|
||||
Reference in New Issue
Block a user