Add debug menu, add ability to load next floor or spawn item

This commit is contained in:
2025-04-09 22:45:00 -07:00
parent 40e7fd0ef2
commit a7381658f4
39 changed files with 411 additions and 210 deletions

View File

@@ -11,7 +11,12 @@ public partial class Armor : EquipableItem
{
public override void _Notification(int what) => this.Notify(what);
[Node] private Sprite3D Sprite { get; set; } = default!;
[Node] private Sprite3D _sprite { get; set; } = default!;
public override void _Ready()
{
_sprite.Texture = Stats.Texture;
}
public override string ItemName => Stats.Name;
@@ -32,8 +37,8 @@ public partial class Armor : EquipableItem
public override ItemTag ItemTag => Stats.ItemTag;
[Export]
[Save("armor_stats")]
[Export]
public ArmorStats Stats { get; set; } = new ArmorStats();
public override Texture2D GetTexture() => Stats.Texture;
}

View File

@@ -1,17 +1,24 @@
[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://b8mjje06x6dl1"]
[ext_resource type="Texture2D" uid="uid://dbb3x4cbo8jc1" path="res://src/items/armor/textures/ACCEPTANCE.PNG" id="1_p85jd"]
[ext_resource type="Script" path="res://src/items/armor/ArmorStats.cs" id="1_si4wu"]
[ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.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 = "+9 DEF"
Texture = ExtResource("1_p85jd")
Defense = 9
_telluricResistance = 0.0
_aeolicResistance = 0.0
_hydricResistance = 0.0
_igneousResistance = 0.0
_ferrumResistance = 0.0
Name = "Acceptance"
Description = "+9 DEF"
SpawnRate = 0.01
ThrowSpeed = 12.0
HealHPAmount = 0
HealVTAmount = 0
ThrowDamage = 5
ItemTag = 0
Texture = ExtResource("1_p85jd")

View File

@@ -1,4 +1,4 @@
[gd_resource type="Resource" script_class="WeaponStats" load_steps=2 format=3 uid="uid://ww4vha51i82v"]
[gd_resource type="Resource" load_steps=2 format=3 uid="uid://ww4vha51i82v"]
[ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="1_d2lw0"]
@@ -21,17 +21,6 @@ AttackSpeed = 0.15
WeaponElement = 0
ElementalDamageBonus = 1.0
WeaponTag = 0
Name = "Atonement"
Description = "\"Should I betray my mother, my father, my brother, my sister, my love, let me be pierced by a thousand knives.
Should I betray the self, let me be struck by 10,000 lightning bolts.
Should I betray them both, let me wander the earth until the pillars of heaven turn to dust.\"
When the 2nd world reached the end of it's creation,
The Goddess of Destruction materialized it's sorrow into this form.
A powerful weapon that has the ability to obliterate anything of the earth.
There is significance in your using it."
SpawnRate = 0.0
ThrowSpeed = 12.0
HealHPAmount = 0

View File

@@ -5,7 +5,7 @@
[resource]
script = ExtResource("1_iran7")
Name = "Mystery rod"
Name = "Mystery Rod"
Description = "Unidentified rod."
Damage = 0
Luck = 0.05
@@ -13,7 +13,7 @@ AttackSpeed = 1.0
WeaponElement = 0
ElementalDamageBonus = 1.0
WeaponTag = 0
Name = "Mystery rod"
Name = "Mystery Rod"
Description = "Unidentified rod."
SpawnRate = 0.5
ThrowSpeed = 12.0