mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
53412c0968
实现钢管武器的蓄力攻击机制,包括: - 添加 Pipe 武器和 PipeBullet 子弹脚本及场景 - 在 Weapon 类中增加蓄力相关属性和方法 - 修改 Rooster 角色以支持武器蓄力功能 - 添加武器蓄力时间计算和伤害加成逻辑
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://dyanyf044boxp"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_sqbqm"]
|
|
[ext_resource type="Texture2D" uid="uid://7yeb0e4ahcee" path="res://resources/weapons/pipe.png" id="2_mmtf8"]
|
|
[ext_resource type="Script" uid="uid://l1v3boq8ei12" path="res://scripts/Contents/Weapons/Pipe.gd" id="2_p67v7"]
|
|
|
|
[node name="Pipe" instance=ExtResource("1_sqbqm")]
|
|
script = ExtResource("2_p67v7")
|
|
avatarTexture = ExtResource("2_mmtf8")
|
|
displayName = "钢管"
|
|
costBeachball = 350
|
|
chargable = true
|
|
store = {
|
|
"atk": 5,
|
|
"charge": 0.1
|
|
}
|
|
storeType = {
|
|
"atk": 1,
|
|
"charge": 2
|
|
}
|
|
descriptionTemplate = "按住蓄力扔出钢管,蓄力越久伤害越高。
|
|
基础伤害:$atk,蓄力倍率:$charge"
|
|
|
|
[node name="avatar" parent="container/info" index="0"]
|
|
texture = ExtResource("2_mmtf8")
|
|
|
|
[node name="beachball" parent="container/info/infos" index="1"]
|
|
count = 350
|
|
|
|
[node name="name" parent="container/info" index="2"]
|
|
displayName = "钢管"
|
|
|
|
[node name="description" parent="container" index="2"]
|
|
text = "[center]按住蓄力扔出钢管,蓄力越久伤害越高。
|
|
基础伤害:[color=cyan]5[/color],蓄力倍率:[color=cyan]10.0%[/color][/center]"
|