1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-31 00:11:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/PipeBullet.gd
T
fallingshrimp fd58948b3f fix(武器/子弹): 调整管道武器和子弹的数值计算
修复管道武器的充能计算方式,改为基于灵魂等级减1的乘法
修改子弹旋转速度计算,使用初始速度替代能量值
添加子弹基础伤害与能量值的关联
调整子弹命中后的能量衰减系数
2026-02-09 13:10:15 +08:00

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