1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-31 00:11:54 +08:00

perf(Weapons/SevenSoul): 减少七魂武器的攻击间隔时间

将七魂武器的攻击间隔从19500毫秒减少到15000毫秒,并添加5000毫秒的生成后延迟,以提升攻击流畅度和游戏体验
This commit is contained in:
2025-09-26 22:29:28 +08:00
parent 15a9e087aa
commit 65d31940de
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -9,7 +9,8 @@ var colors = [
"#FDEB0F"
]
var index = 0
var generationDuration: float = 19500
var generationDuration: float = 15000
var pingAfterGeneration: float = 5000
@onready var heart = $"%heart"
@onready var effect: GPUParticles2D = $"%effect"
@@ -24,7 +25,7 @@ func ai():
heart.global_rotation_degrees = 0
PresetBulletAI.lockLauncher(self, launcher, true)
func applyDot():
if timeLived() > generationDuration * ((6.0 - index) / 6.0):
if timeLived() > generationDuration * ((6.0 - index) / 6.0) + pingAfterGeneration:
BulletBase.generate(ComponentManager.getBullet("SoulBall"), launcher, heart.global_position, heart.global_position.angle_to_point(get_global_mouse_position()))
await TickTool.millseconds(100)
return true
+1 -1
View File
@@ -6,7 +6,7 @@ func attack(entity: EntityBase):
for i in 6:
for j in BulletBase.generate(ComponentManager.getBullet("SevenSoul"), entity, entity.texture.global_position, 0):
j.index = i
await TickTool.millseconds(19500 / 6.0)
await TickTool.millseconds(15000 / 6.0)
func update(to, origin, _entity):
origin["atk"] += 1 * to * soulLevel
return origin