1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-03 09:51:53 +08:00
Files
Dog-Lynx-And-HCN/components/Weapons/PurpleCrystal.tscn
T
fallingshrimp 9ea534441b feat(武器系统): 重构武器攻击逻辑并添加音效支持
- 将武器攻击逻辑移至Weapon类中,添加tryAttack方法统一处理冷却和能量消耗
- 为武器添加音效支持,包括攻击音效的播放和管理
- 移除子弹生成时的能量消耗检查,改由武器统一处理
- 调整部分武器的属性和配置,如伤害值和冷却时间
- 修复紫水晶子弹的分裂和折射逻辑错误
2025-09-06 08:50:37 +08:00

29 lines
1.2 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://c0n3igy4hucrg"]
[ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_hyubh"]
[ext_resource type="Script" path="res://scripts/Contents/Weapons/PurpleCrystal.gd" id="2_0xgcv"]
[ext_resource type="Texture2D" uid="uid://16yhngg3jpun" path="res://resources/weapons/purple-crystal.svg" id="2_wgtcw"]
[ext_resource type="AudioStream" uid="uid://dclinyhu256xi" path="res://resources/sounds/effect/Low Whoosh.mp3" id="4_16daa"]
[node name="PurpleCrystal" instance=ExtResource("1_hyubh")]
offset_bottom = 302.0
script = ExtResource("2_0xgcv")
avatarTexture = ExtResource("2_wgtcw")
displayName = "紫水晶簇"
costs = Array[int]([0, 1])
costCounts = Array[int]([50, 10])
descriptionTemplate = "撞击造成$atk点伤害。"
cooldown = 200.0
[node name="attack" parent="sounds" index="0"]
stream = ExtResource("4_16daa")
[node name="avatar" parent="container/info" index="0"]
texture = ExtResource("2_wgtcw")
[node name="name" parent="container/info" index="2"]
displayName = "紫水晶簇"
[node name="description" parent="container" index="2"]
text = "[center]撞击造成[color=cyan]10.0[/color]点伤害。[/center]"