1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-31 08:21:54 +08:00

feat(武器): 调整茴香豆武器参数和效果

修改茴香豆武器的散射角度从40°降低到20°
添加反弹伤害衰减20%的机制
当特效纹理ID为1时不计入反弹次数
更新武器描述模板和数值计算
移除不再使用的HXDBoom特效脚本
This commit is contained in:
2026-02-02 11:52:26 +08:00
parent 7ddd9ecf84
commit e581a4e381
8 changed files with 12 additions and 13 deletions
+6 -1
View File
@@ -14,7 +14,12 @@ func succeedToHit(_dmg: float, entity: EntityBase):
if is_instance_valid(newEntity):
look_at(newEntity.position)
bouncedTime += 1
EffectController.create(ComponentManager.getEffect("HXDBoom"), position).shot()
var effect = EffectController.create(ComponentManager.getEffect("HXDBoom"), position)
var textureId = randi_range(0, 4)
if textureId == 1:
bouncedTime -= 1
effect.particles.texture = load("res://resources/bullets/HXD/effect/%d.png" % textureId)
effect.shot()
func split(newBullet: BulletBase, _index: int, _total: int, _lastBullet: float):
if newBullet is HXDBullet:
newBullet.bouncedTime = 0