mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-06 03:37:13 +08:00
feat(武器): 实现酸蚀风暴武器及其相关子弹效果
添加酸蚀风暴武器,它会发射一个吸引五种不同类型酸液子弹的风暴中心 修改酸液子弹基类以支持风暴效果 调整酸风武器的属性值和描述 移除旧版随机发射酸液子弹的逻辑
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
extends AcidBulletBase
|
||||
class_name AcidC
|
||||
|
||||
func ai():
|
||||
super.ai()
|
||||
scale *= 1.01
|
||||
modulate.a = 1 - timeLived() / lifeTime
|
||||
func succeedToHit(_dmg: float, entity: EntityBase):
|
||||
entity.fields[FieldStore.Entity.DAMAGE_MULTIPILER] = clamp(entity.fields[FieldStore.Entity.DAMAGE_MULTIPILER] - arg1, 0.2, INF)
|
||||
func split(newBullet: BulletBase, _index: int, _total: int, _lastBullet: float):
|
||||
newBullet.scale = scale.sign()
|
||||
return newBullet
|
||||
newBullet.scale = scale.sign()
|
||||
return newBullet
|
||||
|
||||
Reference in New Issue
Block a user