mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-01 17:01:53 +08:00
feat(武器/子弹): 增强酸性武器伤害并添加子弹分裂功能
- 提高酸性武器的基础攻击力和弱点攻击伤害 - 为酸性子弹添加分裂功能,分裂时保持原子弹的缩放方向
This commit is contained in:
@@ -5,3 +5,6 @@ func ai():
|
||||
super.ai()
|
||||
scale *= 1.01
|
||||
modulate.a = 1 - timeLived() / lifeTime
|
||||
func split(newBullet: BulletBase, _index: int, _total: int, _lastBullet: float):
|
||||
newBullet.scale = scale.sign()
|
||||
return newBullet
|
||||
|
||||
@@ -4,14 +4,14 @@ extends Weapon
|
||||
var acids: Array[String] = ["AcidS", "AcidN", "AcidCl", "AcidP", "AcidC"]
|
||||
|
||||
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["atk"] += 0.05 * to * soulLevel
|
||||
origin["atk"] += 0.075 * to * soulLevel
|
||||
origin["c-atk"] *= soulLevel
|
||||
origin["cl-atkspeed"] *= soulLevel
|
||||
origin["cl-speed"] *= soulLevel
|
||||
origin["n-atk"] *= soulLevel
|
||||
origin["p-offset"] *= soulLevel
|
||||
origin["s-count-max"] *= soulLevel
|
||||
origin["weakatk"] = 0.025 * soulLevel
|
||||
origin["weakatk"] = 0.05 * soulLevel
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
for bullet in BulletBase.generate(
|
||||
|
||||
Reference in New Issue
Block a user