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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user