mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-06 03:37:13 +08:00
refactor(Bullets): 重构格挡子弹逻辑并提取特效创建方法
将ParrierBullet中的特效创建逻辑提取到ParryEffect和ParryEntityEffect类中 修改Volcano子弹的碰撞形状为矩形并更新相关特效调用 调整MuyangDog角色的默认武器为Volcano 统一多个子弹脚本中的函数调用空格格式
This commit is contained in:
@@ -10,14 +10,14 @@ var delta = 0.01
|
||||
func spawn():
|
||||
texture.play(str(randi_range(0, 2)))
|
||||
func ai():
|
||||
PresetBulletAI.forward(self, rotation)
|
||||
PresetBulletAI.forward(self , rotation)
|
||||
func succeedToHit(_dmg: float, entity: EntityBase):
|
||||
if entity.isBoss:
|
||||
launcher.fields[FieldStore.Entity.DAMAGE_MULTIPILER] *= 1 + delta
|
||||
addTimes += 1
|
||||
if is_instance_valid(lastHit):
|
||||
if lastHit.get_class() == entity.get_class():
|
||||
entity.bulletHit(self, true)
|
||||
entity.bulletHit(self , true)
|
||||
lastHit = entity
|
||||
if bouncedTime < maxBouncedTime:
|
||||
var newEntity = EntityTool.findClosetEntity(position, get_tree(), !launcher.isPlayer(), launcher.isPlayer(), [entity])
|
||||
|
||||
Reference in New Issue
Block a user