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

feat(技能图标): 修改粒子发射条件为武器可攻击状态

将技能图标粒子发射条件从进度满改为武器可攻击状态,并添加酸风武器和HXD武器到角色武器库
This commit is contained in:
2026-04-05 08:29:29 +08:00
parent 8d8f25976c
commit 2bb4658968
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ func _physics_process(_delta):
textureRect.texture = weapon.avatarTexture
var progress = min(weapon.cooldownTimer.percent(), UIState.player.fillingProgress(weapon.needEnergy))
material.set_shader_parameter("progress", progress)
particle.emitting = progress >= 1
particle.emitting = weapon.canAttackBy(UIState.player)
if progress >= 1:
if !showed:
showed = true