Add equippable items

This commit is contained in:
2024-09-07 17:38:01 -07:00
parent f223102525
commit c308fadb87
31 changed files with 334 additions and 53 deletions

View File

@@ -26,6 +26,9 @@ namespace GameJamDungeon
[Export] [Export]
public double IgneousResistance { get; set; } public double IgneousResistance { get; set; }
[Export]
public double FerrumResistance { get; set; }
[Export] [Export]
public double TelluricDamageBonus { get; set; } public double TelluricDamageBonus { get; set; }
@@ -37,5 +40,8 @@ namespace GameJamDungeon
[Export] [Export]
public double IgneousDamageBonus { get; set; } public double IgneousDamageBonus { get; set; }
[Export]
public double FerrumDamageBonus { get; set; }
} }
} }

View File

@@ -7,6 +7,6 @@ public partial class InventoryItemInfo : Resource
[Export] [Export]
public string Name = string.Empty; public string Name = string.Empty;
[Export] [Export(PropertyHint.MultilineText)]
public string Description = string.Empty; public string Description = string.Empty;
} }

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="AccessoryInfo" load_steps=2 format=3 uid="uid://cvkwmart5y51r"]
[ext_resource type="Script" path="res://src/items/accessory/AccessoryInfo.cs" id="1_sjkji"]
[resource]
script = ExtResource("1_sjkji")
Name = "Mask of the Goddess of Avarice"
Description = "Raises LUCK"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="AccessoryInfo" load_steps=2 format=3 uid="uid://d4bcem2nup7ef"]
[ext_resource type="Script" path="res://src/items/accessory/AccessoryInfo.cs" id="1_y6l8a"]
[resource]
script = ExtResource("1_y6l8a")
Name = "Mask of the Goddess of Destruction"
Description = "Raises ATK."

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="AccessoryInfo" load_steps=2 format=3 uid="uid://bejy3lpudgawg"]
[ext_resource type="Script" path="res://src/items/accessory/AccessoryInfo.cs" id="1_cgxkh"]
[resource]
script = ExtResource("1_cgxkh")
Name = "Mask of the Goddess of Guilt"
Description = "Raises MAX HP, MAX VT, ATK, DEF"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="AccessoryInfo" load_steps=2 format=3 uid="uid://ddwyaxxqvk52h"]
[ext_resource type="Script" path="res://src/items/accessory/AccessoryInfo.cs" id="1_kuyyj"]
[resource]
script = ExtResource("1_kuyyj")
Name = "Mask of the Goddess of Obstinance"
Description = "Raises DEF."

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="AccessoryInfo" load_steps=2 format=3 uid="uid://c3v6r8s8yruag"]
[ext_resource type="Script" path="res://src/items/accessory/AccessoryInfo.cs" id="1_co7sc"]
[resource]
script = ExtResource("1_co7sc")
Name = "Mask of the Shunned Goddess"
Description = "Status Effect Immunity"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="AccessoryInfo" load_steps=2 format=3 uid="uid://ct8iply3dwssv"]
[ext_resource type="Script" path="res://src/items/accessory/AccessoryInfo.cs" id="1_vdb56"]
[resource]
script = ExtResource("1_vdb56")
Name = "Mask of the Goddess of Sloth"
Description = "Halves VT Depletion Rate"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="AccessoryInfo" load_steps=2 format=3 uid="uid://d02kuxaus43mk"]
[ext_resource type="Script" path="res://src/items/accessory/AccessoryInfo.cs" id="1_3iw2y"]
[resource]
script = ExtResource("1_3iw2y")
Name = "Mask of the Goddess of Suffering"
Description = "Raises MAX VT"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="AccessoryInfo" load_steps=2 format=3 uid="uid://b0bxwp55mcyyp"]
[ext_resource type="Script" path="res://src/items/accessory/AccessoryInfo.cs" id="1_0u4rq"]
[resource]
script = ExtResource("1_0u4rq")
Name = "Mask of the Goddess of Zeal"
Description = "Raises MAX HP"

View File

@@ -19,4 +19,7 @@ public partial class ArmorInfo : InventoryItemInfo
[Export] [Export]
public double IgneousResistance { get; set; } public double IgneousResistance { get; set; }
[Export]
public double FerrumResistance { get; set; }
} }

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="ArmorInfo" load_steps=2 format=3 uid="uid://de7shd7ebo5hj"]
[ext_resource type="Script" path="res://src/items/armor/ArmorInfo.cs" id="1_si4wu"]
[resource]
script = ExtResource("1_si4wu")
Defense = 9
TelluricResistance = 0.0
AeolicResistance = 0.0
HydricResistance = 0.0
IgneousResistance = 0.0
FerrumResistance = 0.0
Name = "Acceptance"
Description = ""

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="ArmorInfo" load_steps=2 format=3 uid="uid://cg05wwvusg15n"]
[ext_resource type="Script" path="res://src/items/armor/ArmorInfo.cs" id="1_6r2bl"]
[resource]
script = ExtResource("1_6r2bl")
Defense = 1
TelluricResistance = 0.0
AeolicResistance = 0.0
HydricResistance = 0.0
IgneousResistance = 0.0
FerrumResistance = 0.0
Name = ""
Description = ""

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="ArmorInfo" load_steps=2 format=3 uid="uid://os5eocdxoqsl"]
[ext_resource type="Script" path="res://src/items/armor/ArmorInfo.cs" id="1_0qtvf"]
[resource]
script = ExtResource("1_0qtvf")
Defense = 2
TelluricResistance = 0.0
AeolicResistance = 0.0
HydricResistance = 0.0
IgneousResistance = 0.0
FerrumResistance = 0.0
Name = "CeremonialVestments"
Description = ""

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="ArmorInfo" load_steps=2 format=3 uid="uid://ds05efyoax4ba"]
[ext_resource type="Script" path="res://src/items/armor/ArmorInfo.cs" id="1_w3lql"]
[resource]
script = ExtResource("1_w3lql")
Defense = 7
TelluricResistance = 0.0
AeolicResistance = 0.0
HydricResistance = 0.0
IgneousResistance = 0.0
FerrumResistance = 0.0
Name = "Devic Layers"
Description = ""

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="ArmorInfo" load_steps=2 format=3 uid="uid://60sj20c5upyt"]
[ext_resource type="Script" path="res://src/items/armor/ArmorInfo.cs" id="1_3mc7x"]
[resource]
script = ExtResource("1_3mc7x")
Defense = 8
TelluricResistance = 0.0
AeolicResistance = 0.0
HydricResistance = 0.0
IgneousResistance = 0.0
FerrumResistance = 0.0
Name = "Goddess' Robe"
Description = ""

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="ArmorInfo" load_steps=2 format=3 uid="uid://dchx174tic46q"]
[ext_resource type="Script" path="res://src/items/armor/ArmorInfo.cs" id="1_iqj2w"]
[resource]
script = ExtResource("1_iqj2w")
Defense = 4
TelluricResistance = 0.0
AeolicResistance = 0.0
HydricResistance = 0.0
IgneousResistance = 0.0
FerrumResistance = 0.0
Name = "Iron Cage"
Description = ""

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="ArmorInfo" load_steps=2 format=3 uid="uid://qyl2wboerc6u"]
[ext_resource type="Script" path="res://src/items/armor/ArmorInfo.cs" id="1_frqfh"]
[resource]
script = ExtResource("1_frqfh")
Defense = 5
TelluricResistance = 0.0
AeolicResistance = 0.0
HydricResistance = 0.0
IgneousResistance = 0.0
FerrumResistance = 0.0
Name = "Logistician's Garb"
Description = ""

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="ArmorInfo" load_steps=2 format=3 uid="uid://chkgu301dfynx"]
[ext_resource type="Script" path="res://src/items/armor/ArmorInfo.cs" id="1_dh6tr"]
[resource]
script = ExtResource("1_dh6tr")
Defense = 6
TelluricResistance = 0.0
AeolicResistance = 0.0
HydricResistance = 0.0
IgneousResistance = 0.0
FerrumResistance = 0.0
Name = "Stoic"
Description = ""

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="ArmorInfo" load_steps=2 format=3 uid="uid://clt1xyuqvs3ve"]
[ext_resource type="Script" path="res://src/items/armor/ArmorInfo.cs" id="1_bkpin"]
[resource]
script = ExtResource("1_bkpin")
Defense = 3
TelluricResistance = 0.0
AeolicResistance = 0.0
HydricResistance = 0.0
IgneousResistance = 0.0
FerrumResistance = 0.0
Name = "Wooden Armament"
Description = ""

View File

@@ -0,0 +1,29 @@
[gd_scene load_steps=5 format=3 uid="uid://cgwtjleqvgubc"]
[ext_resource type="Script" path="res://src/items/weapons/Weapon.cs" id="1_7pkyf"]
[ext_resource type="Resource" uid="uid://cgbbc4mavlwn1" path="res://src/items/weapons/resources/SealingRod.tres" id="2_0p7rx"]
[ext_resource type="Texture2D" uid="uid://wd6jh5q51e4k" path="res://src/items/weapons/models/sword.png" id="2_bwl3y"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_wll7p"]
radius = 0.470016
[node name="SealingRod" type="Node3D"]
script = ExtResource("1_7pkyf")
Info = ExtResource("2_0p7rx")
[node name="Sprite3D" type="Sprite3D" parent="."]
billboard = 2
double_sided = false
alpha_cut = 1
alpha_scissor_threshold = 0.511
alpha_antialiasing_mode = 1
texture_filter = 0
texture = ExtResource("2_bwl3y")
[node name="Pickup" type="Area3D" parent="."]
unique_name_in_owner = true
collision_layer = 4
collision_mask = 4
[node name="CollisionShape3D" type="CollisionShape3D" parent="Pickup"]
shape = SubResource("CapsuleShape3D_wll7p")

View File

@@ -17,4 +17,7 @@ public partial class WeaponInfo : InventoryItemInfo
[Export] [Export]
public double IgneousDamageBonus { get; set; } public double IgneousDamageBonus { get; set; }
[Export]
public double FerrumDamageBonus { get; set; }
} }

View File

@@ -1,52 +0,0 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://3porhq4nswqq"
path="res://.godot/imported/Sword listo.blend-c265962670e3da01fc090f88cb132d4d.scn"
[deps]
source_file="res://src/items/weapons/models/Sword listo.blend"
dest_files=["res://.godot/imported/Sword listo.blend-c265962670e3da01fc090f88cb132d4d.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
_subresources={}
blender/nodes/visible=0
blender/nodes/active_collection_only=false
blender/nodes/punctual_lights=true
blender/nodes/cameras=true
blender/nodes/custom_properties=true
blender/nodes/modifiers=1
blender/meshes/colors=false
blender/meshes/uvs=true
blender/meshes/normals=true
blender/meshes/export_geometry_nodes_instances=false
blender/meshes/tangents=true
blender/meshes/skins=2
blender/meshes/export_bones_deforming_mesh_only=false
blender/materials/unpack_enabled=true
blender/materials/export_materials=1
blender/animation/limit_playback=true
blender/animation/always_sample=true
blender/animation/group_tracks=true

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="WeaponInfo" load_steps=2 format=3 uid="uid://lnrykoy5ngpe"]
[ext_resource type="Script" path="res://src/items/weapons/WeaponInfo.cs" id="1_re512"]
[resource]
script = ExtResource("1_re512")
Damage = 5
TelluricDamageBonus = 0.0
AeolicDamageBonus = 0.0
BaseHydricDamageBonus = 0.0
IgneousDamageBonus = 0.0
FerrumDamageBonus = 0.0
Name = "Jiblett"
Description = "A halberd for the tasteful."

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="WeaponInfo" load_steps=2 format=3 uid="uid://cbnfxh66h4kix"]
[ext_resource type="Script" path="res://src/items/weapons/WeaponInfo.cs" id="1_kbje7"]
[resource]
script = ExtResource("1_kbje7")
Damage = 11
TelluricDamageBonus = 0.0
AeolicDamageBonus = 0.0
BaseHydricDamageBonus = 0.0
IgneousDamageBonus = 0.0
FerrumDamageBonus = 0.0
Name = "Kubel"
Description = "A very powerful spear. For every hit, you lose 5 HP."

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="WeaponInfo" load_steps=2 format=3 uid="uid://bpqq1skryv1cp"]
[ext_resource type="Script" path="res://src/items/weapons/WeaponInfo.cs" id="1_vroib"]
[resource]
script = ExtResource("1_vroib")
Damage = 12
TelluricDamageBonus = 0.0
AeolicDamageBonus = 25.0
BaseHydricDamageBonus = 0.0
IgneousDamageBonus = 0.0
FerrumDamageBonus = 0.0
Name = "Love Judgement"
Description = "A mace only wieldable by the strong of heart."

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="WeaponInfo" load_steps=2 format=3 uid="uid://gkxm3nwxbc3b"]
[ext_resource type="Script" path="res://src/items/weapons/WeaponInfo.cs" id="1_pwwg7"]
[resource]
script = ExtResource("1_pwwg7")
Damage = 10
TelluricDamageBonus = 0.0
AeolicDamageBonus = 0.0
BaseHydricDamageBonus = 0.0
IgneousDamageBonus = 0.0
FerrumDamageBonus = 0.0
Name = "Palm of Heaven"
Description = "Very Powerful. Breaks upon leaving the floor."

View File

@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="WeaponInfo" load_steps=2 format=3 uid="uid://nxt3updvfbke"]
[ext_resource type="Script" path="res://src/items/weapons/WeaponInfo.cs" id="1_xfb0x"]
[resource]
script = ExtResource("1_xfb0x")
Damage = 7
TelluricDamageBonus = 0.0
AeolicDamageBonus = 0.0
BaseHydricDamageBonus = 0.0
IgneousDamageBonus = 0.0
FerrumDamageBonus = 0.0
Name = "Rondo"
Description = "An eastern blade outside of time and reproach."

View File

@@ -0,0 +1,16 @@
[gd_resource type="Resource" script_class="WeaponInfo" load_steps=2 format=3 uid="uid://cgbbc4mavlwn1"]
[ext_resource type="Script" path="res://src/items/weapons/WeaponInfo.cs" id="1_40b5j"]
[resource]
script = ExtResource("1_40b5j")
Damage = 2
TelluricDamageBonus = 0.0
AeolicDamageBonus = 0.0
BaseHydricDamageBonus = 0.0
IgneousDamageBonus = 0.0
FerrumDamageBonus = 0.0
Name = "Sealing Rod"
Description = "A wand fitted with charms said to cleanse and purify that which belongs to other worlds.
It's unaligned nature has the power to balance all that it comes into contact with, should the wielder have the will."

View File

@@ -0,0 +1,16 @@
[gd_resource type="Resource" script_class="WeaponInfo" load_steps=2 format=3 uid="uid://cbc3o11perlvm"]
[ext_resource type="Script" path="res://src/items/weapons/WeaponInfo.cs" id="1_cik6n"]
[resource]
script = ExtResource("1_cik6n")
Damage = 12
TelluricDamageBonus = 0.0
AeolicDamageBonus = 0.0
BaseHydricDamageBonus = 0.0
IgneousDamageBonus = 0.0
FerrumDamageBonus = 0.0
Name = "Swan Sword Odette"
Description = "Ignores Affinity.
The blade of a thousand faced heroine."