mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-30 15:22:30 +08:00
fix(Rooster): 修复蓄力攻击粒子效果和初始化问题
调整蓄力攻击时粒子效果的速度缩放比例,并修复初始化时未设置默认值的问题
This commit is contained in:
@@ -86,8 +86,18 @@ radius = 61.204575
|
|||||||
|
|
||||||
[node name="Rooster" instance=ExtResource("1_e5pl8")]
|
[node name="Rooster" instance=ExtResource("1_e5pl8")]
|
||||||
script = ExtResource("2_oqdqd")
|
script = ExtResource("2_oqdqd")
|
||||||
|
defaultCooldownUnit = null
|
||||||
|
isBoss = null
|
||||||
displayName = "公鸡"
|
displayName = "公鸡"
|
||||||
|
sprintMultiplier = null
|
||||||
|
drops = null
|
||||||
|
dropCounts = null
|
||||||
|
appleCount = null
|
||||||
|
level = null
|
||||||
|
currentInvinsible = null
|
||||||
useStatic = true
|
useStatic = true
|
||||||
|
hurtAudioRate = null
|
||||||
|
health = null
|
||||||
metadata/_edit_horizontal_guides_ = [-188.0]
|
metadata/_edit_horizontal_guides_ = [-188.0]
|
||||||
metadata/_edit_vertical_guides_ = [71.0]
|
metadata/_edit_vertical_guides_ = [71.0]
|
||||||
|
|
||||||
|
|||||||
@@ -52,8 +52,11 @@ func tryLaunch(action: String, weaponIndex: int):
|
|||||||
if weapon.chargable and weapon.canAttackBy(self):
|
if weapon.chargable and weapon.canAttackBy(self):
|
||||||
chargeStartTime[weaponIndex] = Time.get_ticks_msec()
|
chargeStartTime[weaponIndex] = Time.get_ticks_msec()
|
||||||
chargeParticle.emitting = true
|
chargeParticle.emitting = true
|
||||||
|
chargeParticle.speed_scale = 1
|
||||||
if Input.is_action_pressed(action):
|
if Input.is_action_pressed(action):
|
||||||
if !chargeStartTime.has(weaponIndex):
|
if chargeStartTime.has(weaponIndex):
|
||||||
|
chargeParticle.speed_scale += 0.01
|
||||||
|
else:
|
||||||
tryAttack(weaponIndex)
|
tryAttack(weaponIndex)
|
||||||
if Input.is_action_just_released(action):
|
if Input.is_action_just_released(action):
|
||||||
if chargeStartTime.has(weaponIndex):
|
if chargeStartTime.has(weaponIndex):
|
||||||
|
|||||||
Reference in New Issue
Block a user