mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +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")
|
||||
|
||||
@@ -2,14 +2,26 @@
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bs863g2s8r770" path="res://components/Abstracts/PlayerBase.tscn" id="1_y3l4w"]
|
||||
[ext_resource type="Script" uid="uid://bbmb572iba42l" path="res://scripts/Contents/Characters/MuyangDog.gd" id="2_mr6nm"]
|
||||
[ext_resource type="PackedScene" uid="uid://dt8w2w816tsj0" path="res://components/Weapons/RedCrystal.tscn" id="3_6avmi"]
|
||||
[ext_resource type="PackedScene" uid="uid://u0djqwuuysp8" path="res://components/Weapons/Volcano.tscn" id="3_e236u"]
|
||||
[ext_resource type="PackedScene" uid="uid://bbrllsqjmx0ie" path="res://components/Weapons/DaoStatue.tscn" id="3_nco02"]
|
||||
[ext_resource type="PackedScene" uid="uid://cx7nogfnv7s8t" path="res://components/Weapons/Tree.tscn" id="4_im5m5"]
|
||||
|
||||
[node name="MuyangDog" unique_id=1711205167 instance=ExtResource("1_y3l4w")]
|
||||
script = ExtResource("2_mr6nm")
|
||||
displayName = "牧羊犬"
|
||||
|
||||
[node name="Volcano" parent="weaponStore" index="0" unique_id=204992396 instance=ExtResource("3_e236u")]
|
||||
[node name="DaoStatue" parent="weaponStore" index="0" unique_id=265403254 instance=ExtResource("3_nco02")]
|
||||
offset_right = 352.0
|
||||
offset_bottom = 624.0
|
||||
debugRebuild = false
|
||||
|
||||
[node name="Tree" parent="weaponStore" index="1" unique_id=185228402 instance=ExtResource("4_im5m5")]
|
||||
debugRebuild = false
|
||||
offset_right = 352.0
|
||||
offset_bottom = 1416.0
|
||||
|
||||
[node name="RedCrystal" parent="weaponStore" index="2" unique_id=1209955095 instance=ExtResource("3_6avmi")]
|
||||
offset_right = 352.0
|
||||
offset_bottom = 452.0
|
||||
|
||||
[node name="Volcano" parent="weaponStore" index="3" unique_id=204992396 instance=ExtResource("3_e236u")]
|
||||
|
||||
@@ -28,7 +28,9 @@ descriptionTemplate = "消耗[color=yellow]3[/color]层气力,挥出[b]无为
|
||||
|
||||
每失去[color=yellow]1[/color]点生命值,伤害+$rate1;
|
||||
无量反击可化解路径上的一切伤害,
|
||||
每化解[color=yellow]1[/color]点伤害,基础伤害*$rate2。"
|
||||
每化解[color=yellow]1[/color]点伤害:
|
||||
斩击的伤害*$rate2,
|
||||
敌人产生[color=yellow]1[/color]点内伤。"
|
||||
sources = Array[String](["Nine Sols"])
|
||||
tease = "天机不可泄露"
|
||||
needEnergy = 40.0
|
||||
@@ -55,13 +57,15 @@ typeTopic = 1
|
||||
text = "Nine Sols"
|
||||
|
||||
[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682]
|
||||
text = "[center]消耗[color=yellow]3[/color]层气力,挥出[b]无为之剑[/b],
|
||||
text = "消耗[color=yellow]3[/color]层气力,挥出[b]无为之剑[/b],
|
||||
蓄力一段时间后,发动[b]无量反击[/b],
|
||||
造成[color=cyan]20[/color]点基础伤害。
|
||||
|
||||
每失去[color=yellow]1[/color]点生命值,伤害+[color=cyan]5.0%[/color];
|
||||
无量反击可化解路径上的一切伤害,
|
||||
每化解[color=yellow]1[/color]点伤害,基础伤害*[color=cyan]105.0%[/color]。[/center]"
|
||||
每化解[color=yellow]1[/color]点伤害:
|
||||
斩击的伤害*[color=cyan]105.0%[/color],
|
||||
敌人产生[color=yellow]1[/color]点内伤。"
|
||||
|
||||
[node name="tease" parent="container" parent_id_path=PackedInt32Array(575698869) index="3" unique_id=689277044]
|
||||
visible = true
|
||||
|
||||
@@ -68,7 +68,6 @@ descriptionTemplate = "进行[b]格挡[/b],化解敌人的攻击。
|
||||
sources = Array[String](["Nine Sols", "Terraria"])
|
||||
tease = "卸劲反伤"
|
||||
cooldown = 250.0
|
||||
debugRebuild = true
|
||||
|
||||
[node name="avatar" parent="container/info" parent_id_path=PackedInt32Array(1625294072) index="0" unique_id=1021985889]
|
||||
texture = ExtResource("3_nwamk")
|
||||
|
||||
Reference in New Issue
Block a user