1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/PipeBullet.gd
T
fallingshrimp 0fe03c1f5d fix: 调整PipeBullet命中后的能量衰减系数
将命中后的能量衰减系数从0.95调整为0.8,以平衡游戏难度
2026-02-11 16:49:09 +08:00

15 lines
434 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.8