mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-09 21:27:13 +08:00
feat(战斗系统): 添加内伤机制和爆炸类型子弹
为子弹系统添加新的爆炸类型(MotionType.EXPLOSION) 实现内伤机制,包括内伤子弹和相关逻辑 修改多个子弹场景以使用爆炸类型 调整格挡系统,增加内伤效果 更新武器描述和角色配置
This commit is contained in:
@@ -84,7 +84,7 @@ script = ExtResource("2_165xl")
|
||||
displayName = "蹦蹦炸弹"
|
||||
speed = 4.0
|
||||
baseDamage = 30.0
|
||||
motionType = 3
|
||||
motionType = 7
|
||||
lifeTime = 10000.0
|
||||
autoLoopAnimation = true
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
[gd_scene format=3 uid="uid://dnjct3fifocnb"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_xwju0"]
|
||||
[ext_resource type="Texture2D" uid="uid://mo0gjwh5amev" path="res://resources/effects/danger/Effect_Boss_YiGung_Upper1206.png" id="2_0na4i"]
|
||||
[ext_resource type="Script" uid="uid://d3m2bjkxg82a2" path="res://scripts/Contents/Bullets/InternalDamage.gd" id="2_nsbh7"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_nsbh7"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_0na4i")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_0na4i"]
|
||||
radius = 150.0
|
||||
|
||||
[node name="InternalDamage" unique_id=5571707 instance=ExtResource("1_xwju0")]
|
||||
script = ExtResource("2_nsbh7")
|
||||
|
||||
[node name="texture" parent="." index="0" unique_id=162977358]
|
||||
scale = Vector2(0.25103292, 0.25103292)
|
||||
sprite_frames = SubResource("SpriteFrames_nsbh7")
|
||||
|
||||
[node name="hitbox" parent="." index="1" unique_id=175349408]
|
||||
shape = SubResource("CircleShape2D_0na4i")
|
||||
disabled = true
|
||||
@@ -97,6 +97,7 @@ alpha_curve = SubResource("CurveTexture_3jny5")
|
||||
|
||||
[node name="MagicMissle" unique_id=5571707 instance=ExtResource("1_4sjx4")]
|
||||
script = ExtResource("2_lrw10")
|
||||
motionType = 7
|
||||
penerate = 1.0
|
||||
penerateDamageReduction = 0.1
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ radius = 1000.0
|
||||
[node name="NuclearBomb" unique_id=432957691 instance=ExtResource("1_dpea6")]
|
||||
script = ExtResource("2_f85ek")
|
||||
displayName = "核弹"
|
||||
motionType = 3
|
||||
motionType = 7
|
||||
canDamageSelf = true
|
||||
autoDestroyOnHitMap = false
|
||||
|
||||
|
||||
@@ -124,6 +124,7 @@ script = ExtResource("2_x26jp")
|
||||
displayName = "乾坤剑"
|
||||
speed = 20.0
|
||||
baseDamage = 25.0
|
||||
motionType = 7
|
||||
penerate = 1.0
|
||||
penerateDamageReduction = 0.2
|
||||
lifeTime = 3000.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://c0oc8aqfef0tt"]
|
||||
[gd_scene format=3 uid="uid://c0oc8aqfef0tt"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_k4d80"]
|
||||
[ext_resource type="Script" uid="uid://bv848wj2ko0y0" path="res://scripts/Contents/Bullets/RedCrystal.gd" id="2_llvlo"]
|
||||
@@ -15,13 +15,14 @@ animations = [{
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="RedCrystal" instance=ExtResource("1_k4d80")]
|
||||
[node name="RedCrystal" unique_id=1424825822 instance=ExtResource("1_k4d80")]
|
||||
script = ExtResource("2_llvlo")
|
||||
displayName = "红水晶"
|
||||
speed = 8.0
|
||||
motionType = 7
|
||||
lifeTime = 3000.0
|
||||
metadata/_edit_vertical_guides_ = [150.0]
|
||||
|
||||
[node name="texture" parent="." index="0"]
|
||||
[node name="texture" parent="." index="0" unique_id=162977358]
|
||||
modulate = Color(1.2892731, 0.44830602, 0.44830602, 1)
|
||||
sprite_frames = SubResource("SpriteFrames_ns31y")
|
||||
|
||||
Reference in New Issue
Block a user