mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
d5a05f8ac9
将f属性受灵魂等级影响的系数从25降低到15,以平衡武器性能
35 lines
1.1 KiB
GDScript
35 lines
1.1 KiB
GDScript
@tool
|
|
extends Weapon
|
|
|
|
var acids: Array[String] = ["AcidS", "AcidN", "AcidCl", "AcidP", "AcidC"]
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["atk"] += 0.15 * 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.075 * to * soulLevel
|
|
origin["f"] += 15 * (soulLevel - 1)
|
|
return origin
|
|
func attack(entity: EntityBase):
|
|
for bullet in BulletBase.generate(
|
|
ComponentManager.getBullet("AcidStorm"),
|
|
entity,
|
|
entity.findWeaponAnchor("normal"),
|
|
(get_global_mouse_position() - entity.findWeaponAnchor("normal")).angle(),
|
|
):
|
|
if bullet is AcidStormBullet:
|
|
bullet.strongAtk = readStore("atk")
|
|
bullet.weakAtk = readStore("weakatk")
|
|
bullet.sCountMax = readStore("s-count-max")
|
|
bullet.nAtk = readStore("n-atk")
|
|
bullet.clSpeed = readStore("cl-speed")
|
|
bullet.clAtkSpeed = readStore("cl-atkspeed")
|
|
bullet.cAtk = readStore("c-atk")
|
|
bullet.pOffset = readStore("p-offset")
|
|
bullet.f = readStore("f")
|
|
return true
|