1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 23:11:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Weapons/SevenSoul.gd
T
fallingshrimp 65d31940de perf(Weapons/SevenSoul): 减少七魂武器的攻击间隔时间
将七魂武器的攻击间隔从19500毫秒减少到15000毫秒,并添加5000毫秒的生成后延迟,以提升攻击流畅度和游戏体验
2025-09-26 22:29:28 +08:00

13 lines
348 B
GDScript

@tool
extends Weapon
func attack(entity: EntityBase):
playSound("attack")
for i in 6:
for j in BulletBase.generate(ComponentManager.getBullet("SevenSoul"), entity, entity.texture.global_position, 0):
j.index = i
await TickTool.millseconds(15000 / 6.0)
func update(to, origin, _entity):
origin["atk"] += 1 * to * soulLevel
return origin