移除老版本buff系统制作的预制体

This commit is contained in:
小李xl 2024-03-15 13:45:43 +08:00
parent d39385f7a1
commit 13a70dd50e
42 changed files with 0 additions and 1257 deletions

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://tdc6flkvlfbd"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0001.cs" id="1_exxhd"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2_x6ey2"]
[ext_resource type="SpriteFrames" uid="uid://wtvfyprel72y" path="res://resource/spriteFrames/prop/buff/BuffProp0001.tres" id="3_hfyao"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("2_x6ey2")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("2_x6ey2")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0001" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_exxhd")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_hfyao")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://da131v16ct8c4"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="1_2qy1s"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0002.cs" id="1_5ouvd"]
[ext_resource type="SpriteFrames" uid="uid://7t57gsyff470" path="res://resource/spriteFrames/prop/buff/BuffProp0002.tres" id="3_v4alm"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("1_2qy1s")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("1_2qy1s")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0002" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_5ouvd")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_v4alm")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://ds21gbw4wyvn6"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0003.cs" id="1_h8d6p"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="1_udh4b"]
[ext_resource type="SpriteFrames" uid="uid://nqoieett75t3" path="res://resource/spriteFrames/prop/buff/BuffProp0003.tres" id="3_h72sh"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("1_udh4b")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("1_udh4b")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0003" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_h8d6p")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_h72sh")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://cq8edil51uccc"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0004.cs" id="1_7bt71"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="1_j7hva"]
[ext_resource type="SpriteFrames" uid="uid://bj0k3pipwp46x" path="res://resource/spriteFrames/prop/buff/BuffProp0004.tres" id="3_pdaqp"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("1_j7hva")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("1_j7hva")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0004" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_7bt71")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_pdaqp")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://3xtqrx17y14p"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0005.cs" id="1_6dlc2"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="1_qa4yg"]
[ext_resource type="SpriteFrames" uid="uid://bvqp46degt1rg" path="res://resource/spriteFrames/prop/buff/BuffProp0005.tres" id="3_1mcnn"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("1_qa4yg")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("1_qa4yg")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0005" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_6dlc2")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_1mcnn")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://bfc03e4aftg21"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0006.cs" id="1_2cooj"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="1_c1mo1"]
[ext_resource type="SpriteFrames" uid="uid://bxn65oovekw6k" path="res://resource/spriteFrames/prop/buff/BuffProp0006.tres" id="3_nd6lq"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("1_c1mo1")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("1_c1mo1")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0006" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_2cooj")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_nd6lq")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://cwfuv68ijkmfg"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0007.cs" id="1_71c3m"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="1_ofs5v"]
[ext_resource type="SpriteFrames" uid="uid://et840sb4d1g3" path="res://resource/spriteFrames/prop/buff/BuffProp0007.tres" id="3_xxla0"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("1_ofs5v")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("1_ofs5v")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0007" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_71c3m")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_xxla0")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://cn1tmegrfgr8h"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0008.cs" id="1_b5ys1"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="1_tdrqb"]
[ext_resource type="SpriteFrames" uid="uid://bs41p1hpkpucb" path="res://resource/spriteFrames/prop/buff/BuffProp0008.tres" id="3_5noil"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("1_tdrqb")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("1_tdrqb")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0008" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_b5ys1")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_5noil")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://gh0dxgvshwpm"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0009.cs" id="1_e1yrg"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="1_eq0bc"]
[ext_resource type="SpriteFrames" uid="uid://sqcibio78nwc" path="res://resource/spriteFrames/prop/buff/BuffProp0009.tres" id="3_qrjbu"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("1_eq0bc")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("1_eq0bc")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0009" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_e1yrg")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_qrjbu")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://do5mmmapnyxg4"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="1_5yy3i"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0010.cs" id="1_q6g7l"]
[ext_resource type="SpriteFrames" uid="uid://dxqtm7xgn2wms" path="res://resource/spriteFrames/prop/buff/BuffProp0010.tres" id="3_i5q7j"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("1_5yy3i")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("1_5yy3i")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0010" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_q6g7l")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_i5q7j")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://bs3ysp1587xqe"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0011.cs" id="1_dnyh3"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2_d5gcm"]
[ext_resource type="SpriteFrames" uid="uid://bq7t8ruav5g41" path="res://resource/spriteFrames/prop/buff/BuffProp0011.tres" id="3_hrxu3"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("2_d5gcm")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("2_d5gcm")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0011" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_dnyh3")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_hrxu3")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://ph6x3vmkp11j"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0012.cs" id="1_w2r3p"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2_kwnd5"]
[ext_resource type="SpriteFrames" uid="uid://rksmm8jwex7l" path="res://resource/spriteFrames/prop/buff/BuffProp0012.tres" id="3_fijh4"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("2_kwnd5")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("2_kwnd5")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0012" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_w2r3p")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_fijh4")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://di6874mbwbpkd"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0013.cs" id="1_iy1yu"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2_n5bm6"]
[ext_resource type="SpriteFrames" uid="uid://cdnrqfy0vfyu5" path="res://resource/spriteFrames/prop/buff/BuffProp0013.tres" id="3_4qjjr"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("2_n5bm6")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("2_n5bm6")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0013" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_iy1yu")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_4qjjr")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,50 +0,0 @@
[gd_scene load_steps=7 format=3 uid="uid://dw2tt5urcxtxe"]
[ext_resource type="Script" path="res://src/game/activity/prop/buff/BuffProp0014.cs" id="1_3n5b4"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2_ts4j6"]
[ext_resource type="SpriteFrames" uid="uid://ux70kddi6wwy" path="res://resource/spriteFrames/prop/buff/BuffProp0014.tres" id="3_byb1t"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mrkt4"]
resource_local_to_scene = true
shader = ExtResource("2_ts4j6")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = false
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b6ii6"]
resource_local_to_scene = true
shader = ExtResource("2_ts4j6")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(0, 0, 0, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpqup"]
size = Vector2(12, 10)
[node name="BuffProp0014" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
collision_layer = 4
script = ExtResource("1_3n5b4")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")
[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_mrkt4")
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_b6ii6")
sprite_frames = ExtResource("3_byb1t")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_cpqup")

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://wtvfyprel72y"]
[ext_resource type="Texture2D" uid="uid://bls55gj8h3mgv" path="res://resource/sprite/prop/buff/BuffProp0001.png" id="1_scm06"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_scm06")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://7t57gsyff470"]
[ext_resource type="Texture2D" uid="uid://cv2joc07ymofw" path="res://resource/sprite/prop/buff/BuffProp0002.png" id="1_8nnhb"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_8nnhb")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://nqoieett75t3"]
[ext_resource type="Texture2D" uid="uid://osr0v1c6l8ly" path="res://resource/sprite/prop/buff/BuffProp0003.png" id="1_p16yr"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_p16yr")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://bj0k3pipwp46x"]
[ext_resource type="Texture2D" uid="uid://c0c25nihdcgt1" path="res://resource/sprite/prop/buff/BuffProp0004.png" id="1_a2o8b"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_a2o8b")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://bvqp46degt1rg"]
[ext_resource type="Texture2D" uid="uid://dse0mbg06ngya" path="res://resource/sprite/prop/buff/BuffProp0005.png" id="1_en8jo"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_en8jo")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://bxn65oovekw6k"]
[ext_resource type="Texture2D" uid="uid://do8blk3xm5uy1" path="res://resource/sprite/prop/buff/BuffProp0006.png" id="1_ugsdc"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_ugsdc")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://et840sb4d1g3"]
[ext_resource type="Texture2D" uid="uid://fql5q452jqo0" path="res://resource/sprite/prop/buff/BuffProp0007.png" id="1_p5fwh"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_p5fwh")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://bs41p1hpkpucb"]
[ext_resource type="Texture2D" uid="uid://cn8f56vjb02u2" path="res://resource/sprite/prop/buff/BuffProp0008.png" id="1_7efyb"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_7efyb")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://sqcibio78nwc"]
[ext_resource type="Texture2D" uid="uid://csak48bvrnws" path="res://resource/sprite/prop/buff/BuffProp0009.png" id="1_78egk"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_78egk")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://dxqtm7xgn2wms"]
[ext_resource type="Texture2D" uid="uid://dlsfun6svqfmm" path="res://resource/sprite/prop/buff/BuffProp0010.png" id="1_w8rnu"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_w8rnu")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://bq7t8ruav5g41"]
[ext_resource type="Texture2D" uid="uid://b3lemqkwfnufw" path="res://resource/sprite/prop/buff/BuffProp0011.png" id="1_abwtt"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_abwtt")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://rksmm8jwex7l"]
[ext_resource type="Texture2D" uid="uid://djhhig4ct8fgo" path="res://resource/sprite/prop/buff/BuffProp0012.png" id="1_kl6x5"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_kl6x5")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://cdnrqfy0vfyu5"]
[ext_resource type="Texture2D" uid="uid://8ykm3jbhjpxh" path="res://resource/sprite/prop/buff/BuffProp0013.png" id="1_sshn3"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_sshn3")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,14 +0,0 @@
[gd_resource type="SpriteFrames" load_steps=2 format=3 uid="uid://ux70kddi6wwy"]
[ext_resource type="Texture2D" uid="uid://ddkno2rlclys0" path="res://resource/sprite/prop/buff/BuffProp0014.png" id="1_0n30r"]
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_0n30r")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

View File

@ -1,23 +0,0 @@

using Godot;
/// <summary>
/// 移速 buff, 移速 + 3
/// </summary>
[Tool]
public partial class BuffProp0001 : BuffActivity
{
public override void OnPickUpItem()
{
Master.RoleState.MoveSpeed += 30;
Master.RoleState.Acceleration += 400;
Master.RoleState.Friction += 300;
}
public override void OnRemoveItem()
{
Master.RoleState.MoveSpeed -= 30;
Master.RoleState.Acceleration -= 400;
Master.RoleState.Friction -= 300;
}
}

View File

@ -1,20 +0,0 @@

using Godot;
/// <summary>
/// 血量上限buff, 心之容器 + 1
/// </summary>
[Tool]
public partial class BuffProp0002 : BuffActivity
{
public override void OnPickUpItem()
{
Master.MaxHp += 2;
Master.Hp += 2;
}
public override void OnRemoveItem()
{
Master.MaxHp -= 2;
}
}

View File

@ -1,20 +0,0 @@

using Godot;
/// <summary>
/// 护盾上限buff, 护盾 + 1
/// </summary>
[Tool]
public partial class BuffProp0003 : BuffActivity
{
public override void OnPickUpItem()
{
Master.MaxShield += 1;
Master.Shield += 1;
}
public override void OnRemoveItem()
{
Master.MaxShield -= 1;
}
}

View File

@ -1,19 +0,0 @@

using Godot;
/// <summary>
/// 护盾恢复时间buff, 恢复时间 - 2.5s
/// </summary>
[Tool]
public partial class BuffProp0004 : BuffActivity
{
public override void OnPickUpItem()
{
Master.RoleState.ShieldRecoveryTime -= 2.5f;
}
public override void OnRemoveItem()
{
Master.RoleState.ShieldRecoveryTime += 2.5f;
}
}

View File

@ -1,24 +0,0 @@

using Godot;
/// <summary>
/// 提升伤害buff, 子弹伤害提升20%
/// </summary>
[Tool]
public partial class BuffProp0005 : BuffActivity
{
public override void OnPickUpItem()
{
Master.RoleState.CalcDamageEvent += CalcDamage;
}
public override void OnRemoveItem()
{
Master.RoleState.CalcDamageEvent -= CalcDamage;
}
private void CalcDamage(int originDamage, RefValue<int> refValue)
{
refValue.Value += Mathf.CeilToInt(originDamage * 0.2f);
}
}

View File

@ -1,19 +0,0 @@

using Godot;
/// <summary>
/// 延长无敌时间buff, 受伤后无敌时间 + 2s
/// </summary>
[Tool]
public partial class BuffProp0006 : BuffActivity
{
public override void OnPickUpItem()
{
Master.RoleState.WoundedInvincibleTime += 2f;
}
public override void OnRemoveItem()
{
Master.RoleState.WoundedInvincibleTime -= 2f;
}
}

View File

@ -1,27 +0,0 @@

using Godot;
/// <summary>
/// 受伤时有15%概率抵消伤害
/// </summary>
[Tool]
public partial class BuffProp0007 : BuffActivity
{
public override void OnPickUpItem()
{
Master.RoleState.CalcHurtDamageEvent += CalcHurtDamageEvent;
}
public override void OnRemoveItem()
{
Master.RoleState.CalcHurtDamageEvent -= CalcHurtDamageEvent;
}
private void CalcHurtDamageEvent(int originDamage, RefValue<int> refValue)
{
if (refValue.Value > 0 && Utils.Random.RandomBoolean(0.15f))
{
refValue.Value = 0;
}
}
}

View File

@ -1,31 +0,0 @@

using Godot;
/// <summary>
/// 眼镜, 提高武器50%精准度
/// </summary>
[Tool]
public partial class BuffProp0008 : BuffActivity
{
public override void OnPickUpItem()
{
Master.RoleState.CalcStartScatteringEvent += CalcStartScatteringEvent;
Master.RoleState.CalcFinalScatteringEvent += CalcFinalScatteringEvent;
}
public override void OnRemoveItem()
{
Master.RoleState.CalcStartScatteringEvent -= CalcStartScatteringEvent;
Master.RoleState.CalcFinalScatteringEvent -= CalcFinalScatteringEvent;
}
private void CalcStartScatteringEvent(float originValue, RefValue<float> refValue)
{
refValue.Value *= 0.5f;
}
private void CalcFinalScatteringEvent(float originValue, RefValue<float> refValue)
{
refValue.Value *= 0.5f;
}
}

View File

@ -1,31 +0,0 @@

using Godot;
/// <summary>
/// 高速子弹 子弹速度和射程提升25%
/// </summary>
[Tool]
public partial class BuffProp0009 : BuffActivity
{
public override void OnPickUpItem()
{
Master.RoleState.CalcBulletSpeedEvent += CalcBulletSpeedEvent;
Master.RoleState.CalcBulletDistanceEvent += CalcBulletDistanceEvent;
}
public override void OnRemoveItem()
{
Master.RoleState.CalcBulletSpeedEvent -= CalcBulletSpeedEvent;
Master.RoleState.CalcBulletDistanceEvent -= CalcBulletDistanceEvent;
}
private void CalcBulletSpeedEvent(float originSpeed, RefValue<float> speed)
{
speed.Value += originSpeed * 0.25f;
}
private void CalcBulletDistanceEvent(float originDistance, RefValue<float> distance)
{
distance.Value += originDistance * 0.25f;
}
}

View File

@ -1,63 +0,0 @@

using Godot;
/// <summary>
/// 分裂子弹 子弹数量翻倍, 但是精准度, 击退和伤害降低
/// </summary>
[Tool]
public partial class BuffProp0010 : BuffActivity
{
public override void OnPickUpItem()
{
Master.RoleState.CalcBulletCountEvent += CalcBulletCountEvent;
Master.RoleState.CalcBulletDeviationAngleEvent += CalcBulletDeviationAngleEvent;
Master.RoleState.CalcDamageEvent += CalcDamageEvent;
Master.RoleState.CalcBulletSpeedEvent += CalcBulletSpeedEvent;
Master.RoleState.CalcBulletRepelEvent += CalcBulletRepelEvent;
}
public override void OnRemoveItem()
{
Master.RoleState.CalcBulletCountEvent -= CalcBulletCountEvent;
Master.RoleState.CalcBulletDeviationAngleEvent -= CalcBulletDeviationAngleEvent;
Master.RoleState.CalcDamageEvent -= CalcDamageEvent;
Master.RoleState.CalcBulletSpeedEvent -= CalcBulletSpeedEvent;
Master.RoleState.CalcBulletRepelEvent -= CalcBulletRepelEvent;
}
private void CalcBulletCountEvent(int originCount, RefValue<int> refValue)
{
refValue.Value += originCount;
}
private void CalcBulletDeviationAngleEvent(float originAngle, RefValue<float> refValue)
{
refValue.Value += Utils.Random.RandomRangeFloat(-8, 8);
}
private void CalcDamageEvent(int originDamage, RefValue<int> refValue)
{
if (refValue.Value <= 0)
{
return;
}
refValue.Value = Mathf.Max(1, refValue.Value - Mathf.FloorToInt(refValue.Value * 0.35f));
}
private void CalcBulletSpeedEvent(float originSpeed, RefValue<float> speed)
{
speed.Value += originSpeed * Utils.Random.RandomRangeFloat(-0.05f, 0.05f);
}
private void CalcBulletRepelEvent(float originRepel, RefValue<float> repel)
{
if (repel.Value < 0 || (Master.WeaponPack.ActiveItem != null &&
Master.WeaponPack.ActiveItem.Attribute.IsMelee))
{
return;
}
repel.Value = Mathf.Max(1, repel.Value - Mathf.FloorToInt(repel.Value * 0.35f));
}
}

View File

@ -1,24 +0,0 @@

using Godot;
/// <summary>
/// 弹射子弹 子弹反弹次数 +2
/// </summary>
[Tool]
public partial class BuffProp0011 : BuffActivity
{
public override void OnPickUpItem()
{
Master.RoleState.CalcBulletBounceCountEvent += CalcBulletBounceCountEvent;
}
public override void OnRemoveItem()
{
Master.RoleState.CalcBulletBounceCountEvent -= CalcBulletBounceCountEvent;
}
private void CalcBulletBounceCountEvent(int originBounce, RefValue<int> bounce)
{
bounce.Value += 2;
}
}

View File

@ -1,24 +0,0 @@

using Godot;
/// <summary>
/// 穿透子弹 子弹穿透+1
/// </summary>
[Tool]
public partial class BuffProp0012 : BuffActivity
{
public override void OnPickUpItem()
{
Master.RoleState.CalcBulletPenetrationEvent += CalcBulletPenetrationEvent;
}
public override void OnRemoveItem()
{
Master.RoleState.CalcBulletPenetrationEvent -= CalcBulletPenetrationEvent;
}
private void CalcBulletPenetrationEvent(int origin, RefValue<int> penetration)
{
penetration.Value += 1;
}
}

View File

@ -1,18 +0,0 @@
using Godot;
/// <summary>
/// 武器背包 武器容量+1
/// </summary>
[Tool]
public partial class BuffProp0013 : BuffActivity
{
public override void OnPickUpItem()
{
Master.WeaponPack.SetCapacity(Master.WeaponPack.Capacity + 1);
}
public override void OnRemoveItem()
{
Master.WeaponPack.SetCapacity(Master.WeaponPack.Capacity - 1);
}
}

View File

@ -1,18 +0,0 @@
using Godot;
/// <summary>
/// 道具背包 道具容量+1
/// </summary>
[Tool]
public partial class BuffProp0014 : BuffActivity
{
public override void OnPickUpItem()
{
Master.ActivePropsPack.SetCapacity(Master.ActivePropsPack.Capacity + 1);
}
public override void OnRemoveItem()
{
Master.ActivePropsPack.SetCapacity(Master.ActivePropsPack.Capacity - 1);
}
}