Item spawning

This commit is contained in:
2024-09-08 14:19:30 -07:00
parent 29a6d1072c
commit a47d1306b9
417 changed files with 17412 additions and 1019 deletions

View File

@@ -1,15 +1,30 @@
[gd_scene load_steps=10 format=3 uid="uid://c10nhqq8su6pp"]
[gd_scene load_steps=9 format=3 uid="uid://c10nhqq8su6pp"]
[ext_resource type="Script" path="res://src/items/weapons/Weapon.cs" id="1_f8v7v"]
[ext_resource type="Resource" uid="uid://b4oxsf4k3nr43" path="res://src/items/weapons/resources/RareSword.tres" id="2_6nmyd"]
[ext_resource type="Texture2D" uid="uid://wd6jh5q51e4k" path="res://src/items/weapons/models/sword.png" id="3_meaac"]
[ext_resource type="Script" path="res://src/items/weapons/WeaponInfo.cs" id="3_o6dnw"]
[sub_resource type="Resource" id="Resource_s6hhf"]
script = ExtResource("3_o6dnw")
Damage = 7
Luck = 0.05
AttackSpeed = 1.0
TelluricDamageBonus = 0.0
AeolicDamageBonus = 0.0
BaseHydricDamageBonus = 0.0
IgneousDamageBonus = 0.0
FerrumDamageBonus = 0.0
WeaponTags = []
Name = ""
Description = ""
Texture = ExtResource("3_meaac")
[sub_resource type="Animation" id="Animation_w4iur"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Rigid/Pickup:position")
tracks/0/path = NodePath("Pickup:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
@@ -25,7 +40,7 @@ length = 0.75
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Rigid/Pickup:position")
tracks/0/path = NodePath("Pickup:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
@@ -41,19 +56,12 @@ _data = {
"drop": SubResource("Animation_gkdye")
}
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_n11ob"]
rough = true
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_uhvnd"]
radius = 0.4
height = 1.4
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_4ic28"]
radius = 0.470016
[node name="RareSword" type="Node3D"]
script = ExtResource("1_f8v7v")
Info = ExtResource("2_6nmyd")
WeaponInfo = SubResource("Resource_s6hhf")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
unique_name_in_owner = true
@@ -61,23 +69,12 @@ libraries = {
"": SubResource("AnimationLibrary_s2htf")
}
[node name="Rigid" type="RigidBody3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -4)
mass = 50.0
physics_material_override = SubResource("PhysicsMaterial_n11ob")
sleeping = true
lock_rotation = true
[node name="CollisionShape3D" type="CollisionShape3D" parent="Rigid"]
shape = SubResource("CapsuleShape3D_uhvnd")
[node name="Pickup" type="Area3D" parent="Rigid"]
[node name="Pickup" type="Area3D" parent="."]
unique_name_in_owner = true
collision_layer = 4
collision_mask = 4
[node name="Sprite" type="Sprite3D" parent="Rigid/Pickup"]
[node name="Sprite" type="Sprite3D" parent="Pickup"]
unique_name_in_owner = true
billboard = 2
double_sided = false
@@ -87,5 +84,5 @@ alpha_antialiasing_mode = 1
texture_filter = 0
texture = ExtResource("3_meaac")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Rigid/Pickup"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Pickup"]
shape = SubResource("CapsuleShape3D_4ic28")