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

feat(武器): 增强酸风武器功能并优化代码

- 为磷酸子弹添加追踪功能
- 移除碳酸子弹的散射效果
- 增加硫酸子弹的最大溅射数量
- 优化变量类型声明
- 更新武器描述文本以反映新功能
This commit is contained in:
2026-01-24 07:53:06 +08:00
parent e21f918380
commit 5aba62cdbc
4 changed files with 21 additions and 13 deletions
+5 -1
View File
@@ -2,4 +2,8 @@ extends AcidBulletBase
class_name AcidP
func succeedToHit(_dmg: float, entity: EntityBase):
entity.fields[FieldStore.Entity.OFFSET_SHOOT] = clamp(entity.fields[FieldStore.Entity.OFFSET_SHOOT] + arg1, 0, INF)
entity.fields[FieldStore.Entity.OFFSET_SHOOT] = clamp(entity.fields[FieldStore.Entity.OFFSET_SHOOT] + arg1, 0, INF)
func ai():
super.ai()
if is_instance_valid(arg2):
PresetBulletAI.trace(self, arg2.position, 0.01)