1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-31 00:11:54 +08:00
Files
Dog-Lynx-And-HCN/components/Weapons/MushroomPickaxe.tscn
T
fallingshrimp 8fcc742c77 feat: 添加蘑菇矿挖爪武器及其相关功能
添加新的武器蘑菇矿挖爪,包括武器脚本、子弹脚本和场景文件。修改BulletBase.gd以支持新武器的功能,并在Rooster角色中添加该武器。同时设置rooster节点为初始不可见状态。

- 新增MushroomPickaxe武器,具有概率掉落物品的特性
- 修改BulletBase的succeedToHit方法以支持实体参数
- 在Rooster场景中添加新武器
- 设置rooster节点的currentInvinsible属性为true
2025-09-14 22:38:08 +08:00

36 lines
1.3 KiB
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://dwsyn746hr25d"]
[ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_aoaad"]
[ext_resource type="Script" path="res://scripts/Contents/Weapons/MushroomPickaxe.gd" id="2_5dp3e"]
[ext_resource type="Texture2D" uid="uid://cqg0aluvegqfe" path="res://resources/bullets/MushroomPickaxe/frames/Shroomite_Digging_Claw.webp" id="2_u2d30"]
[node name="MushroomPickaxe" instance=ExtResource("1_aoaad")]
script = ExtResource("2_5dp3e")
avatarTexture = ExtResource("2_u2d30")
displayName = "蘑菇矿挖爪"
store = {
"atk": 1,
"count": 5.0,
"rate": 0.15
}
storeType = {
"atk": 1,
"count": 1,
"rate": 2
}
descriptionTemplate = "命中时造成$atk点伤害,有$rate概率挖出1~$count个随机物品。"
needEnergy = 1.0
debugRebuild = true
[node name="avatar" parent="container/info" index="0"]
texture = ExtResource("2_u2d30")
[node name="energy" parent="container/info/infos/energyInfo" index="1"]
text = "1.0"
[node name="name" parent="container/info" index="2"]
displayName = "蘑菇矿挖爪"
[node name="description" parent="container" index="2"]
text = "[center]命中时造成[color=cyan]1[/color]点伤害,有[color=cyan]15%[/color]概率挖出1~[color=cyan]5[/color]个随机物品。[/center]"