1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
fallingshrimp fb5488b10d fix(Volcano.gd): 硬编码动画播放速度替换原攻击速度计算
将原本根据攻击速度计算的动画缩放倍率改为固定0.75,简化子弹动画速度控制逻辑
2026-05-12 06:49:36 +08:00
fallingshrimp 4026caf0de refactor(bullet): 修复子弹切割时的速度缩放逻辑
1. 修正Volcano子弹动画速度计算改为直接修改animator.speed_scale
2. 调整Volcano子弹发射速度倍率从0.9倍改为原0.75倍
3. 优化Volcano子弹粒子发射速度从300改为150
4. 调整MuyangDog的fieldValues并添加点击重建属性
5. 修复Volcano动画轨迹的多余关键帧与modulate显示逻辑
2026-05-12 06:46:33 +08:00
4 changed files with 35 additions and 10 deletions
+30 -6
View File
@@ -115,6 +115,18 @@ tracks/8/keys = {
"update": 1,
"values": [false]
}
tracks/9/type = "value"
tracks/9/imported = false
tracks/9/enabled = true
tracks/9/path = NodePath("%textureSword/trailLine:modulate")
tracks/9/interp = 1
tracks/9/loop_wrap = true
tracks/9/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_oinqg"]
resource_name = "destroy"
@@ -133,7 +145,7 @@ tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0, 0, 2),
"points": PackedFloat32Array(200, 0, 0, 0.25, 0, 500, -0.083333336, -8.333334, 0, 0, 200, 0, 0, 0, 0),
"points": PackedFloat32Array(200, 0, 0, 0.1, 0, 500, -0.2, 0, 0.02, 0, 200, -0.05, -100, 0, 0),
"times": PackedFloat32Array(0, 0.2, 0.3)
}
tracks/1/type = "bezier"
@@ -254,10 +266,10 @@ tracks/9/path = NodePath("anchor/textureSword/trailLine:visible")
tracks/9/interp = 1
tracks/9/loop_wrap = true
tracks/9/keys = {
"times": PackedFloat32Array(0, 0.15, 0.2, 1.65, 1.8),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"times": PackedFloat32Array(0, 0.15, 0.2, 1.65),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [false, true, false, true, false]
"values": [false, true, false, true]
}
tracks/10/type = "value"
tracks/10/imported = false
@@ -271,6 +283,18 @@ tracks/10/keys = {
"update": 1,
"values": [false, true, false]
}
tracks/11/type = "value"
tracks/11/imported = false
tracks/11/enabled = true
tracks/11/path = NodePath("%textureSword/trailLine:modulate")
tracks/11/interp = 1
tracks/11/loop_wrap = true
tracks/11/keys = {
"times": PackedFloat32Array(0, 1.8, 2),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_w1utg"]
_data = {
@@ -319,8 +343,8 @@ alpha_curve = SubResource("CurveTexture_xrrxo")
particle_flag_disable_z = true
direction = Vector3(-1, 1, 0)
spread = 0.0
initial_velocity_min = 300.0
initial_velocity_max = 300.0
initial_velocity_min = 150.0
initial_velocity_max = 150.0
gravity = Vector3(0, 0, 0)
alpha_curve = SubResource("CurveTexture_b5nxd")
+2 -1
View File
@@ -21,7 +21,8 @@ slogan = "恪守使命不离不弃"
avatar = ExtResource("2_fi2nw")
description = "每隔3秒发动格挡。"
fields = Array[int]([0, 8, 3])
fieldValues = Array[float]([100.0, 0.2, 0.0])
fieldValues = Array[float]([100.0, 0.2, -0.45])
clickToRebuild = true
[node name="avatarTexture" parent="wrapper" parent_id_path=PackedInt32Array(2023039659) index="0" unique_id=1334645594]
texture = ExtResource("2_fi2nw")
+1 -1
View File
@@ -10,7 +10,7 @@ var dmg5: float = 0
var splitAngle: float = 10
func spawn():
animator.speed_scale = launcher.fields[FieldStore.Entity.ATTACK_SPEED] * 0.75
animator.speed_scale = 0.75
setupCuttable(0.2)
func ai():
PresetBulletAI.lockLauncher(self , launcher, true)
+2 -2
View File
@@ -131,13 +131,13 @@ func setupCuttable(cutSpeed: float):
func(body):
var entity = EntityTool.fromHurtbox(body)
if entity:
speedScale *= cutSpeed
animator.speed_scale *= cutSpeed
)
area_exited.connect(
func(body):
var entity = EntityTool.fromHurtbox(body)
if entity:
speedScale /= cutSpeed
animator.speed_scale /= cutSpeed
)
func getDamage():
return baseDamage * damageMultipliers[usingDamageMultiplier]