diff --git a/components/Bullets/Arrow.tscn b/components/Bullets/Arrow.tscn index 839e7db..e254b23 100644 --- a/components/Bullets/Arrow.tscn +++ b/components/Bullets/Arrow.tscn @@ -134,7 +134,7 @@ script = ExtResource("2_qddg0") displayName = "鸡毛箭" speed = 50.0 penerate = 1.0 -lifeDistance = 2000.0 +lifeTime = 2000.0 autoSpawnAnimation = true [node name="animator" parent="texture" index="0"] diff --git a/scripts/Contents/Bullets/Arrow.gd b/scripts/Contents/Bullets/Arrow.gd index 3c3642e..61c81e8 100644 --- a/scripts/Contents/Bullets/Arrow.gd +++ b/scripts/Contents/Bullets/Arrow.gd @@ -18,7 +18,7 @@ func ai(): else: trail.emitting = true hitbox.disabled = false - speed = (1 - lifeDistancePercent()) * initialSpeed + speed = (1 - lifeTimePercent()) * initialSpeed baseDamage = speed * atk PresetBulletAI.forward(self, rotation) if speed < 1: