mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
c52d293718
将ParrierBullet中的特效创建逻辑提取到ParryEffect和ParryEntityEffect类中 修改Volcano子弹的碰撞形状为矩形并更新相关特效调用 调整MuyangDog角色的默认武器为Volcano 统一多个子弹脚本中的函数调用空格格式
15 lines
435 B
GDScript
15 lines
435 B
GDScript
extends BulletBase
|
|
class_name PipeBullet
|
|
|
|
var energy: float = 0
|
|
|
|
func ai():
|
|
PresetBulletAI.forward(self , rotation)
|
|
texture.rotation += initialSpeed * (1 - lifeTimePercent()) / 100
|
|
speed = initialSpeed * (1 - lifeTimePercent())
|
|
baseDamage = energy
|
|
func destroy(_beacuseMap: bool):
|
|
EffectController.create(ComponentManager.getEffect("PipeFall"), position).shot()
|
|
func succeedToHit(_dmg: float, _entity: EntityBase):
|
|
energy *= 0.6
|