1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-01 17:01:53 +08:00
Files
Dog-Lynx-And-HCN/components/Weapons/Pipe.tscn
T
fallingshrimp e1ac836497 refactor(武器系统): 优化武器攻击逻辑和能量检查
- 将武器攻击前的条件检查提取为独立方法 canAttackBy
- 重构能量检查逻辑,增加 isEnergyEnough 方法
- 简化公鸡角色的输入处理,合并重复代码为 tryLaunch 方法
- 调整钢管武器的冷却时间为 3000.0
2026-02-05 20:52:04 +08:00

38 lines
1.3 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"
needEnergy = 2.0
cooldown = 3000.0
[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]"