mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-30 16:01:53 +08:00
fd58948b3f
修复管道武器的充能计算方式,改为基于灵魂等级减1的乘法 修改子弹旋转速度计算,使用初始速度替代能量值 添加子弹基础伤害与能量值的关联 调整子弹命中后的能量衰减系数
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.95
|