From 8575cd6ddf64307148e6595dedb8421ccb2dfec2 Mon Sep 17 00:00:00 2001 From: Zenny Date: Fri, 12 Jun 2026 18:09:52 -0700 Subject: [PATCH] Revamp item spawn behavior --- .../IFloorSpawnTable.cs | 6 ++ .../Item/IBaseInventoryItem.cs | 8 +- .../Map}/FloorType.cs | 4 +- .../Map/RarityTag.cs | 12 +++ .../src/items/InventoryItemStats.cs | 12 ++- Zennysoft.Game.Ma/src/items/ItemDatabase.cs | 21 ++-- .../src/items/accessory/Accessory.cs | 8 +- .../accessory/resources/MaskAvarice.tres | 37 ++++++- .../accessory/resources/MaskBanquet.tres | 37 ++++++- .../accessory/resources/MaskDestruction.tres | 37 ++++++- .../accessory/resources/MaskGuidance.tres | 37 ++++++- .../items/accessory/resources/MaskMalice.tres | 37 ++++++- .../accessory/resources/MaskObstinance.tres | 37 ++++++- .../accessory/resources/MaskShunned.tres | 37 ++++++- .../items/accessory/resources/MaskStasis.tres | 37 ++++++- .../accessory/resources/MaskSuffering.tres | 37 ++++++- .../items/accessory/resources/MaskWisdom.tres | 37 ++++++- .../items/accessory/resources/MaskZeal.tres | 37 ++++++- .../accessory/resources/MysteryAccessory.tres | 37 ++++++- .../accessory/resources/StonePrison.tres | 37 ++++++- Zennysoft.Game.Ma/src/items/ammo/Ammo.cs | 6 +- .../items/ammo/resources/Eolic Shells.tres | 37 ++++++- .../src/items/ammo/resources/HydricAmmo.tres | 37 ++++++- .../src/items/ammo/resources/IgneousAmmo.tres | 37 ++++++- .../src/items/ammo/resources/Kugloj.tres | 37 ++++++- .../items/ammo/resources/Telluric Shells.tres | 37 ++++++- Zennysoft.Game.Ma/src/items/armor/Armor.cs | 23 +++-- .../armor/resources/AtonersAdornments.tres | 37 ++++++- .../src/items/armor/resources/BlastArmor.tres | 37 ++++++- .../src/items/armor/resources/DemonRobe.tres | 37 ++++++- .../items/armor/resources/GoddessRobe.tres | 37 ++++++- .../items/armor/resources/HolyBarrier.tres | 37 ++++++- .../src/items/armor/resources/JaguarSuit.tres | 37 ++++++- .../armor/resources/LogisticiansGarb.tres | 37 ++++++- .../items/armor/resources/MysteryArmor.tres | 37 ++++++- .../items/armor/resources/RustedPlate.tres | 37 ++++++- .../src/items/armor/resources/SaintCloth.tres | 37 ++++++- .../items/armor/resources/StoneSafety.tres | 37 ++++++- .../items/armor/resources/TemporalGuard.tres | 37 ++++++- .../armor/resources/Vocationer's Armor.tres | 37 ++++++- .../items/armor/resources/WoodenArmament.tres | 37 ++++++- Zennysoft.Game.Ma/src/items/box/BoxItem.cs | 8 +- .../box/resources/AlluringAcquisition.tres | 37 ++++++- .../src/items/box/resources/Asceticism.tres | 37 ++++++- .../items/box/resources/BloodAcquisition.tres | 37 ++++++- .../src/items/box/resources/EmptyPromise.tres | 37 ++++++- .../items/box/resources/EquivalenceBox.tres | 37 ++++++- .../box/resources/FashionableAcquisition.tres | 37 ++++++- .../src/items/box/resources/FuryBox.tres | 37 ++++++- .../src/items/box/resources/GlueJar.tres | 37 ++++++- .../box/resources/HealthyAcquisition.tres | 37 ++++++- .../box/resources/IdentityAcquisition.tres | 37 ++++++- .../src/items/box/resources/LotteryBox.tres | 37 ++++++- .../src/items/box/resources/Malfunction.tres | 37 ++++++- .../box/resources/MysticalAcquisition.tres | 37 ++++++- .../src/items/box/resources/ScholarsBox.tres | 37 ++++++- .../box/resources/SpeculativeAcquisition.tres | 37 ++++++- .../items/box/resources/TrickstersBox.tres | 37 ++++++- .../src/items/box/resources/TrinketBox.tres | 37 ++++++- .../src/items/consumable/ConsumableItem.cs | 8 +- .../consumable/resources/Amrit Electuary.tres | 37 ++++++- .../src/items/effect/EffectItem.cs | 8 +- .../items/effect/resources/AnBradanFeasa.tres | 37 ++++++- .../items/effect/resources/BlueTalisman.tres | 37 ++++++- .../items/effect/resources/GreenTalisman.tres | 37 ++++++- .../items/effect/resources/MysteryTag.tres | 38 ++++++- .../src/items/effect/resources/Persiko.tres | 37 ++++++- .../items/effect/resources/RedTalisman.tres | 38 ++++++- .../SciptureSignHeavensRebellion.tres | 37 ++++++- .../resources/ScriptureSignDevicBalance.tres | 37 ++++++- .../ScriptureSignDivinityRecall.tres | 37 ++++++- .../ScriptureSignGospelOfDimension.tres | 37 ++++++- .../resources/ScriptureSignGospelOfPaths.tres | 37 ++++++- .../resources/ScriptureSignImprecation.tres | 37 ++++++- .../resources/ScriptureSignKyuuketsuki.tres | 37 ++++++- .../ScriptureSignSineMorphization.tres | 37 ++++++- .../effect/resources/SpellSignAblution.tres | 37 ++++++- .../effect/resources/SpellSignAnamnesis.tres | 37 ++++++- .../resources/SpellSignCellDegradation.tres | 37 ++++++- .../resources/SpellSignClothResolution.tres | 37 ++++++- .../effect/resources/SpellSignCosmos.tres | 37 ++++++- .../SpellSignCovalentDestruction.tres | 37 ++++++- .../effect/resources/SpellSignDullness.tres | 37 ++++++- .../resources/SpellSignEntropicSeal.tres | 37 ++++++- .../resources/SpellSignFerrousResolution.tres | 37 ++++++- .../effect/resources/SpellSignFortune.tres | 39 +++++++- .../resources/SpellSignGrandLibrary.tres | 37 ++++++- .../resources/SpellSignMelticalWave.tres | 37 ++++++- .../resources/SpellSignMetallicReducer.tres | 38 ++++++- .../resources/SpellSignPerspective.tres | 37 ++++++- .../effect/resources/SpellSignRegression.tres | 37 ++++++- .../resources/SpellSignReprieval Wave.tres | 37 ++++++- .../resources/SpellSignRoadOfMisfortune.tres | 37 ++++++- .../SpellSignSomaticCellNuclearTransfer.tres | 37 ++++++- Zennysoft.Game.Ma/src/items/jewels/Jewel.cs | 8 +- .../items/jewels/resources/AeolicJewel.tres | 37 ++++++- .../items/jewels/resources/AnabolicJewel.tres | 37 ++++++- .../src/items/jewels/resources/BlackEgg.tres | 37 ++++++- .../src/items/jewels/resources/CatsEye.tres | 37 ++++++- .../jewels/resources/CinnabarStructure.tres | 37 ++++++- .../items/jewels/resources/FoolishOrb.tres | 37 ++++++- .../src/items/jewels/resources/GlueOrb.tres | 37 ++++++- .../items/jewels/resources/HeirloomStone.tres | 37 ++++++- .../items/jewels/resources/HydricJewel.tres | 37 ++++++- .../items/jewels/resources/IgenousJewel.tres | 37 ++++++- .../items/jewels/resources/MeditativeOrb.tres | 37 ++++++- .../items/jewels/resources/MercuryPrism.tres | 37 ++++++- .../jewels/resources/MetabolicJewel.tres | 37 ++++++- .../items/jewels/resources/MysteryJewel.tres | 37 ++++++- .../jewels/resources/OssifiedCortex.tres | 37 ++++++- .../jewels/resources/RejectionStone.tres | 37 ++++++- .../jewels/resources/TarnishedJewel.tres | 37 ++++++- .../items/jewels/resources/TelluricJewel.tres | 37 ++++++- Zennysoft.Game.Ma/src/items/misc/SetItem.cs | 8 +- .../src/items/throwable/ThrowableItem.cs | 8 +- Zennysoft.Game.Ma/src/items/weapons/Weapon.cs | 7 +- .../src/items/weapons/resources/Cello.tres | 37 ++++++- .../weapons/resources/CruciformSword.tres | 37 ++++++- .../src/items/weapons/resources/Dilemma.tres | 37 ++++++- .../weapons/resources/GeomanticReactor.tres | 37 ++++++- .../items/weapons/resources/Grudge Blade.tres | 37 ++++++- .../items/weapons/resources/HopesEdge.tres | 37 ++++++- .../weapons/resources/HuracansBlade.tres | 37 ++++++- .../items/weapons/resources/IroncladNata.tres | 37 ++++++- .../src/items/weapons/resources/Joyeuse.tres | 37 ++++++- .../src/items/weapons/resources/Kathari.tres | 37 ++++++- .../src/items/weapons/resources/Kubel.tres | 37 ++++++- .../weapons/resources/LoveJudgement.tres | 37 ++++++- .../items/weapons/resources/MothersSpear.tres | 37 ++++++- .../items/weapons/resources/MysteryRod.tres | 37 ++++++- .../items/weapons/resources/NaddahaSword.tres | 37 ++++++- .../items/weapons/resources/NebulaChain.tres | 37 ++++++- .../weapons/resources/Palm of Heaven.tres | 37 ++++++- .../items/weapons/resources/Persuader.tres | 37 ++++++- .../items/weapons/resources/PlasmaSword.tres | 37 ++++++- .../src/items/weapons/resources/Rondo.tres | 37 ++++++- .../items/weapons/resources/RustedBlade.tres | 37 ++++++- .../items/weapons/resources/SealedSword.tres | 37 ++++++- .../weapons/resources/ShiningHalberd.tres | 37 ++++++- .../weapons/resources/Swan Sword Odette.tres | 37 ++++++- .../src/items/weapons/resources/Talwar.tres | 37 ++++++- .../items/weapons/resources/Tepotztli.tres | 37 ++++++- .../src/items/weapons/resources/Xiphos.tres | 37 ++++++- .../items/weapons/resources/YansaBlade.tres | 37 ++++++- .../src/map/FloorScenePathConverter.cs | 1 + Zennysoft.Game.Ma/src/map/FloorSpawnTable.cs | 98 +++++++++++++++++++ .../src/map/FloorSpawnTable.cs.uid | 1 + Zennysoft.Game.Ma/src/map/Map.cs | 8 ++ Zennysoft.Game.Ma/src/map/SpecialFloorNode.cs | 9 -- .../src/map/SpecialFloorNode.cs.uid | 1 - Zennysoft.Game.Ma/src/map/SpecialFloorType.cs | 17 ---- .../src/map/dungeon/code/Altar.cs | 57 +++++------ .../src/map/dungeon/code/MonsterRoom.cs | 32 ++++-- .../src/map/dungeon/floors/FloorScene.cs | 1 + 154 files changed, 4769 insertions(+), 352 deletions(-) create mode 100644 Zennysoft.Game.Abstractions/IFloorSpawnTable.cs rename {Zennysoft.Game.Ma/src/map => Zennysoft.Game.Ma.Implementation/Map}/FloorType.cs (91%) create mode 100644 Zennysoft.Game.Ma.Implementation/Map/RarityTag.cs create mode 100644 Zennysoft.Game.Ma/src/map/FloorSpawnTable.cs create mode 100644 Zennysoft.Game.Ma/src/map/FloorSpawnTable.cs.uid delete mode 100644 Zennysoft.Game.Ma/src/map/SpecialFloorNode.cs delete mode 100644 Zennysoft.Game.Ma/src/map/SpecialFloorNode.cs.uid delete mode 100644 Zennysoft.Game.Ma/src/map/SpecialFloorType.cs diff --git a/Zennysoft.Game.Abstractions/IFloorSpawnTable.cs b/Zennysoft.Game.Abstractions/IFloorSpawnTable.cs new file mode 100644 index 00000000..42f148d1 --- /dev/null +++ b/Zennysoft.Game.Abstractions/IFloorSpawnTable.cs @@ -0,0 +1,6 @@ +namespace Zennysoft.Game.Abstractions +{ + public interface IFloorSpawnTable + { + } +} diff --git a/Zennysoft.Game.Ma.Implementation/Item/IBaseInventoryItem.cs b/Zennysoft.Game.Ma.Implementation/Item/IBaseInventoryItem.cs index a4fa60a0..753c7ca3 100644 --- a/Zennysoft.Game.Ma.Implementation/Item/IBaseInventoryItem.cs +++ b/Zennysoft.Game.Ma.Implementation/Item/IBaseInventoryItem.cs @@ -1,5 +1,6 @@  using Godot; +using Zennysoft.Game.Abstractions; using Zennysoft.Ma.Adapter; public interface IBaseInventoryItem @@ -7,10 +8,15 @@ public interface IBaseInventoryItem public string ItemName { get; } public string StatDescription { get; } public string FlavorText { get; } - public float SpawnRate { get; } public int ThrowDamage { get; } public float ThrowSpeed { get; } public ItemTag ItemTag { get; } public abstract Texture2D GetTexture(); + + public float SpawnRate { get; } + + public RarityTag RarityTag { get; } + + public IFloorSpawnTable SpawnsOn { get; } } \ No newline at end of file diff --git a/Zennysoft.Game.Ma/src/map/FloorType.cs b/Zennysoft.Game.Ma.Implementation/Map/FloorType.cs similarity index 91% rename from Zennysoft.Game.Ma/src/map/FloorType.cs rename to Zennysoft.Game.Ma.Implementation/Map/FloorType.cs index 0f1ff60c..bd44c6e5 100644 --- a/Zennysoft.Game.Ma/src/map/FloorType.cs +++ b/Zennysoft.Game.Ma.Implementation/Map/FloorType.cs @@ -1,4 +1,4 @@ -namespace Zennysoft.Game.Ma; +namespace Zennysoft.Ma.Adapter; public enum FloorType { @@ -30,4 +30,4 @@ public enum FloorType FinalFloor, BadEnd, HeartOfAllThings -} +} \ No newline at end of file diff --git a/Zennysoft.Game.Ma.Implementation/Map/RarityTag.cs b/Zennysoft.Game.Ma.Implementation/Map/RarityTag.cs new file mode 100644 index 00000000..e4a74e62 --- /dev/null +++ b/Zennysoft.Game.Ma.Implementation/Map/RarityTag.cs @@ -0,0 +1,12 @@ +using Godot.Collections; + +namespace Zennysoft.Ma.Adapter; + +public enum RarityTag +{ + Common, // 50% + Uncommon, // 35% + Rare, // 14% + Legendary, // 1% + NotSpawnable +} \ No newline at end of file diff --git a/Zennysoft.Game.Ma/src/items/InventoryItemStats.cs b/Zennysoft.Game.Ma/src/items/InventoryItemStats.cs index c38492e4..76566d92 100644 --- a/Zennysoft.Game.Ma/src/items/InventoryItemStats.cs +++ b/Zennysoft.Game.Ma/src/items/InventoryItemStats.cs @@ -20,9 +20,6 @@ public abstract partial class InventoryItemStats : Resource [Save("equipment_flavor_text")] public string FlavorText { get; set; } - [Export(PropertyHint.Range, "0, 1, 0.01")] - public float SpawnRate { get; set; } = 0.5f; - [Export] [Save("weapon_damage")] public int BonusAttack { get; set; } = 0; @@ -86,4 +83,13 @@ public abstract partial class InventoryItemStats : Resource [Export] [Save("inventory_item_texture")] public Texture2D Texture { get; set; } + + [Export] + public RarityTag RarityTag { get; set; } + + [Export(PropertyHint.Range, "0, 1, 0.01")] + public float SpawnRate { get; set; } = 1f; + + [Export] + public FloorSpawnTable SpawnsOn { get; set; } = new FloorSpawnTable(); } diff --git a/Zennysoft.Game.Ma/src/items/ItemDatabase.cs b/Zennysoft.Game.Ma/src/items/ItemDatabase.cs index c33df305..38c292e3 100644 --- a/Zennysoft.Game.Ma/src/items/ItemDatabase.cs +++ b/Zennysoft.Game.Ma/src/items/ItemDatabase.cs @@ -23,17 +23,23 @@ public class ItemDatabase return PickItemInternal(itemsToSelectFrom, itemsToExclude); } + public T PickItemFromList(T[] spawnableItems) + where T : IBaseInventoryItem + { + return PickItemInternal(spawnableItems); + } + public T PickRareItem(params T[] itemsToExclude) where T : IBaseInventoryItem { - var getRareItems = Items.OfType().Where(x => x.SpawnRate < 0.1f); + var getRareItems = Items.OfType().Where(x => x.RarityTag == RarityTag.Rare); return PickItemInternal(getRareItems, itemsToExclude); } public T PickBasicItem(params T[] itemsToExclude) where T : IBaseInventoryItem { - var getBasicItems = Items.OfType().Where(x => x.SpawnRate > 0.5f); + var getBasicItems = Items.OfType().Where(x => x.RarityTag == RarityTag.Common); return PickItemInternal(getBasicItems, itemsToExclude); } @@ -42,14 +48,17 @@ public class ItemDatabase { var rng = new RandomNumberGenerator(); rng.Randomize(); + var validItems = itemsToSelectFrom.ToArray(); if (itemsToExclude.Any()) - itemsToSelectFrom = itemsToSelectFrom.Except(itemsToExclude); + validItems = [.. validItems.Except(itemsToExclude)]; - itemsToSelectFrom = itemsToSelectFrom.Where(x => x.ItemTag != ItemTag.MysteryItem); + validItems = [.. validItems.Where(x => x.ItemTag != ItemTag.MysteryItem)]; - var weights = itemsToSelectFrom.Select(x => x.SpawnRate).ToArray(); - var selectedItem = itemsToSelectFrom.ToArray()[rng.RandWeighted(weights)]; + var weights = validItems.Select(x => x.SpawnRate).ToArray(); + var index = rng.RandWeighted(weights); + GD.Print($"Item Spawn Index: {index}, Array Size: {validItems.Count()}"); + var selectedItem = validItems[index]; return selectedItem; } diff --git a/Zennysoft.Game.Ma/src/items/accessory/Accessory.cs b/Zennysoft.Game.Ma/src/items/accessory/Accessory.cs index 52623737..7fd4e018 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/Accessory.cs +++ b/Zennysoft.Game.Ma/src/items/accessory/Accessory.cs @@ -2,6 +2,8 @@ using Chickensoft.AutoInject; using Chickensoft.Introspection; using Chickensoft.Serialization; using Godot; +using System.Collections.Generic; +using Zennysoft.Game.Abstractions; using Zennysoft.Ma.Adapter; using Zennysoft.Ma.Adapter.Entity; @@ -35,7 +37,7 @@ public partial class Accessory : Node3D, IAccessory public string FlavorText => Stats.FlavorText; - public float SpawnRate => Stats.SpawnRate; + public float BaseRarity => Stats.SpawnRate; public int ThrowDamage => Stats.ThrowDamage; @@ -90,6 +92,10 @@ public partial class Accessory : Node3D, IAccessory public AccessoryStats Stats { get; set; } = new AccessoryStats(); public Augment Augment { get; set; } public bool Glued { get; set; } + public RarityTag RarityTag => Stats.RarityTag; + public float SpawnRate => Stats.SpawnRate; public Texture2D GetTexture() => Stats.Texture; + + public IFloorSpawnTable SpawnsOn => Stats.SpawnsOn; } diff --git a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskAvarice.tres b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskAvarice.tres index 3db9a7cf..ba5ea793 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskAvarice.tres +++ b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskAvarice.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AccessoryStats" load_steps=3 format=3 uid="uid://cvkwmart5y51r"] +[gd_resource type="Resource" script_class="AccessoryStats" load_steps=5 format=3 uid="uid://cvkwmart5y51r"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_sj306"] [ext_resource type="Texture2D" uid="uid://d01n1tloggcwd" path="res://src/items/accessory/textures/Mask of Avarice.png" id="1_tdick"] [ext_resource type="Script" uid="uid://b8arlmivk68b" path="res://src/items/accessory/AccessoryStats.cs" id="1_xqaot"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_sj306") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_xqaot") AccessoryTag = 0 @@ -12,7 +43,6 @@ FlavorText = "A mask that brings a exceptional degree of fortune to the wearer. Expect great things. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 15 @@ -29,3 +59,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_tdick") +RarityTag = 2 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskBanquet.tres b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskBanquet.tres index df071b05..5df39b41 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskBanquet.tres +++ b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskBanquet.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AccessoryStats" load_steps=3 format=3 uid="uid://bejy3lpudgawg"] +[gd_resource type="Resource" script_class="AccessoryStats" load_steps=5 format=3 uid="uid://bejy3lpudgawg"] [ext_resource type="Texture2D" uid="uid://gaj2an2j66mj" path="res://src/items/accessory/textures/Mask of Guilt.png" id="1_cix6v"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_pdmud"] [ext_resource type="Script" uid="uid://b8arlmivk68b" path="res://src/items/accessory/AccessoryStats.cs" id="2_pdmud"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_pdmud") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_pdmud") AccessoryTag = 1 @@ -13,7 +44,6 @@ What remains is a world devoid of perhaps the single most joyful commonality of They were among the utmost favorite collaborators of the Goddess of Art. " -SpawnRate = 0.1 BonusAttack = 2 BonusDefense = 2 BonusLuck = 0 @@ -30,3 +60,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_cix6v") +RarityTag = 2 +SpawnRate = 0.1 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskDestruction.tres b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskDestruction.tres index 434b2084..afbef820 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskDestruction.tres +++ b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskDestruction.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AccessoryStats" load_steps=3 format=3 uid="uid://d4bcem2nup7ef"] +[gd_resource type="Resource" script_class="AccessoryStats" load_steps=5 format=3 uid="uid://d4bcem2nup7ef"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_kjw7j"] [ext_resource type="Texture2D" uid="uid://b365mnqpml610" path="res://src/items/accessory/textures/Mask of Destruction.png" id="1_o4s2p"] [ext_resource type="Script" uid="uid://b8arlmivk68b" path="res://src/items/accessory/AccessoryStats.cs" id="1_vef66"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_kjw7j") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_vef66") AccessoryTag = 0 @@ -11,7 +42,6 @@ StatDescription = "Raises ATK." FlavorText = "The Goddess of Destruction, upon her metamorphization and eventual dissolution, shed this memento with peace in her heart at long last. " -SpawnRate = 0.3 BonusAttack = 3 BonusDefense = 0 BonusLuck = 0 @@ -28,3 +58,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_o4s2p") +RarityTag = 2 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskGuidance.tres b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskGuidance.tres index ac954751..9a05acfc 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskGuidance.tres +++ b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskGuidance.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AccessoryStats" load_steps=3 format=3 uid="uid://nduer44x56fe"] +[gd_resource type="Resource" script_class="AccessoryStats" load_steps=5 format=3 uid="uid://nduer44x56fe"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_jtycj"] [ext_resource type="Texture2D" uid="uid://bas4s04h64fhc" path="res://src/items/accessory/textures/Mask of Guidance.png" id="1_v0vin"] [ext_resource type="Script" uid="uid://b8arlmivk68b" path="res://src/items/accessory/AccessoryStats.cs" id="2_jtycj"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_jtycj") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_jtycj") AccessoryTag = 0 @@ -11,7 +42,6 @@ StatDescription = "Allows one domain over much of the Tower." FlavorText = "A small trace of divinity remains. " -SpawnRate = 0.0 BonusAttack = 0 BonusDefense = 0 BonusLuck = 50 @@ -28,3 +58,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_v0vin") +RarityTag = 2 +SpawnRate = 0.0 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskMalice.tres b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskMalice.tres index 6cd2c0c2..bbd696c0 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskMalice.tres +++ b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskMalice.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AccessoryStats" load_steps=3 format=3 uid="uid://crxh6vr26s6g1"] +[gd_resource type="Resource" script_class="AccessoryStats" load_steps=5 format=3 uid="uid://crxh6vr26s6g1"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_isrgr"] [ext_resource type="Texture2D" uid="uid://c38oe4xk57h1e" path="res://src/items/accessory/textures/Mask of Malice.png" id="1_usq0b"] [ext_resource type="Script" uid="uid://b8arlmivk68b" path="res://src/items/accessory/AccessoryStats.cs" id="2_dw5c8"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_isrgr") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_dw5c8") AccessoryTag = 0 @@ -11,7 +42,6 @@ StatDescription = "Raises ATK, DEF, and LUCK." FlavorText = "Great masks of remembrance have been found in the Tower since before anyone can remember. Each possesses a small spiritual trace of the departed. " -SpawnRate = 0.1 BonusAttack = 3 BonusDefense = 3 BonusLuck = 15 @@ -28,3 +58,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_usq0b") +RarityTag = 2 +SpawnRate = 0.1 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskObstinance.tres b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskObstinance.tres index de581d4d..b6f151bc 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskObstinance.tres +++ b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskObstinance.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AccessoryStats" load_steps=3 format=3 uid="uid://ddwyaxxqvk52h"] +[gd_resource type="Resource" script_class="AccessoryStats" load_steps=5 format=3 uid="uid://ddwyaxxqvk52h"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_1ngy6"] [ext_resource type="Script" uid="uid://b8arlmivk68b" path="res://src/items/accessory/AccessoryStats.cs" id="1_kuyyj"] [ext_resource type="Texture2D" uid="uid://djrffamswcc1n" path="res://src/items/accessory/textures/Mask of Obstinance.png" id="1_q802c"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_1ngy6") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_kuyyj") AccessoryTag = 0 @@ -11,7 +42,6 @@ StatDescription = "Raises DEF." FlavorText = "A strong sense of self and unwavering ideals aids one's visit to the Tower greatly. The domain of obstinance was ruled once by a horned and oft veiled god. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 3 BonusLuck = 0 @@ -28,3 +58,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_q802c") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskShunned.tres b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskShunned.tres index 65e0a33c..1487f965 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskShunned.tres +++ b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskShunned.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AccessoryStats" load_steps=3 format=3 uid="uid://c3v6r8s8yruag"] +[gd_resource type="Resource" script_class="AccessoryStats" load_steps=5 format=3 uid="uid://c3v6r8s8yruag"] [ext_resource type="Texture2D" uid="uid://bg00ld586q0w7" path="res://src/items/accessory/textures/Mask of the Shunned Goddess.png" id="1_8s3rr"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_c867f"] [ext_resource type="Script" uid="uid://b8arlmivk68b" path="res://src/items/accessory/AccessoryStats.cs" id="1_co7sc"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_c867f") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_co7sc") AccessoryTag = 2 @@ -10,7 +41,6 @@ Name = "Mask of the Shunned Goddess" StatDescription = "Raises ATK, DEF, LUCK, HP and VT." FlavorText = "Familiarity breeds contempt. A true blessing it is then, that the contempt possible by eternity is one that no mortal could understand. " -SpawnRate = 0.05 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -27,3 +57,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_8s3rr") +RarityTag = 2 +SpawnRate = 0.05 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskStasis.tres b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskStasis.tres index 65c8ead4..5a5a533e 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskStasis.tres +++ b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskStasis.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AccessoryStats" load_steps=3 format=3 uid="uid://ct8iply3dwssv"] +[gd_resource type="Resource" script_class="AccessoryStats" load_steps=5 format=3 uid="uid://ct8iply3dwssv"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_4sqvt"] [ext_resource type="Texture2D" uid="uid://c26oxi0rdf765" path="res://src/items/accessory/textures/Mask of Stasis.png" id="1_5dc3q"] [ext_resource type="Script" uid="uid://b8arlmivk68b" path="res://src/items/accessory/AccessoryStats.cs" id="2_4sqvt"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_4sqvt") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_4sqvt") AccessoryTag = 0 @@ -11,7 +42,6 @@ StatDescription = "Raises MAX VT" FlavorText = "A mask extracted from one who has reached enlightenment via the embrace of nature. The symbiotic and blessed bark is cool to the touch and fills the air with the unmistakable fragrance of a home far away. " -SpawnRate = 0.2 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -28,3 +58,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_5dc3q") +RarityTag = 2 +SpawnRate = 0.2 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskSuffering.tres b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskSuffering.tres index e2515dfa..16aa16ec 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskSuffering.tres +++ b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskSuffering.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="AccessoryStats" load_steps=3 format=3 uid="uid://d02kuxaus43mk"] +[gd_resource type="Resource" script_class="AccessoryStats" load_steps=5 format=3 uid="uid://d02kuxaus43mk"] [ext_resource type="Script" uid="uid://b8arlmivk68b" path="res://src/items/accessory/AccessoryStats.cs" id="1_3iw2y"] [ext_resource type="Texture2D" uid="uid://bh4bt0b53jhie" path="res://src/items/accessory/textures/mask of suffering.png" id="1_l1p50"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_ry7gt"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_ry7gt") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_3iw2y") @@ -12,7 +43,6 @@ FlavorText = "A visage representing a state of being beyond pain, beyond sufferi No record exists of the deity this mask embodies. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -29,3 +59,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_l1p50") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskWisdom.tres b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskWisdom.tres index 0aea5d3f..3fa84bb0 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskWisdom.tres +++ b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskWisdom.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AccessoryStats" load_steps=3 format=3 uid="uid://b81h3vxtmvq8y"] +[gd_resource type="Resource" script_class="AccessoryStats" load_steps=5 format=3 uid="uid://b81h3vxtmvq8y"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_73i6n"] [ext_resource type="Texture2D" uid="uid://pw7caeu0qlsx" path="res://src/items/accessory/textures/Mask of Wisdom.png" id="1_iu13c"] [ext_resource type="Script" uid="uid://b8arlmivk68b" path="res://src/items/accessory/AccessoryStats.cs" id="2_73i6n"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_73i6n") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_73i6n") AccessoryTag = 3 @@ -11,7 +42,6 @@ StatDescription = "Grants the wearer increased XP gain." FlavorText = "At the onset of things, the God of Wisdom was highly revered. The eventual dissemination of sacred wisdom within human-kind overcame the need for such an externalized deity. As a result, this mask has occupied the Tower for some time. " -SpawnRate = 0.2 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -28,3 +58,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_iu13c") +RarityTag = 2 +SpawnRate = 0.2 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskZeal.tres b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskZeal.tres index 88231af0..3fc74c75 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/resources/MaskZeal.tres +++ b/Zennysoft.Game.Ma/src/items/accessory/resources/MaskZeal.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AccessoryStats" load_steps=3 format=3 uid="uid://b0bxwp55mcyyp"] +[gd_resource type="Resource" script_class="AccessoryStats" load_steps=5 format=3 uid="uid://b0bxwp55mcyyp"] [ext_resource type="Script" uid="uid://b8arlmivk68b" path="res://src/items/accessory/AccessoryStats.cs" id="1_0u4rq"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_efses"] [ext_resource type="Texture2D" uid="uid://cy7qvpjahblv3" path="res://src/items/accessory/textures/Mask of Zeal.png" id="1_o1pjn"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_efses") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_0u4rq") AccessoryTag = 0 @@ -11,7 +42,6 @@ StatDescription = "Raises MAX HP." FlavorText = "The former Goddess of Zeal's departure set a great malaise upon the denizens of the Tower and the world below. For the remaining, the wounds are still too recent and too near. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -28,3 +58,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_o1pjn") +RarityTag = 2 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/accessory/resources/MysteryAccessory.tres b/Zennysoft.Game.Ma/src/items/accessory/resources/MysteryAccessory.tres index c5f0c991..a20592ba 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/resources/MysteryAccessory.tres +++ b/Zennysoft.Game.Ma/src/items/accessory/resources/MysteryAccessory.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="AccessoryStats" load_steps=3 format=3 uid="uid://ecmjxvihuahv"] +[gd_resource type="Resource" script_class="AccessoryStats" load_steps=5 format=3 uid="uid://ecmjxvihuahv"] [ext_resource type="Texture2D" uid="uid://esqaln68twiw" path="res://src/items/Icons/Unidentified Item.png" id="1_fbxyn"] [ext_resource type="Script" uid="uid://b8arlmivk68b" path="res://src/items/accessory/AccessoryStats.cs" id="1_xc7fh"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_y0h7g"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_y0h7g") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_xc7fh") @@ -9,7 +40,6 @@ AccessoryTag = 0 Name = "Unknown Mask" StatDescription = "Unidentified Mask." FlavorText = "" -SpawnRate = 0.2 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -26,4 +56,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 2 Texture = ExtResource("1_fbxyn") +RarityTag = 2 +SpawnRate = 0.2 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b8arlmivk68b" diff --git a/Zennysoft.Game.Ma/src/items/accessory/resources/StonePrison.tres b/Zennysoft.Game.Ma/src/items/accessory/resources/StonePrison.tres index a235ff9a..b3acdf9f 100644 --- a/Zennysoft.Game.Ma/src/items/accessory/resources/StonePrison.tres +++ b/Zennysoft.Game.Ma/src/items/accessory/resources/StonePrison.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AccessoryStats" load_steps=3 format=3 uid="uid://c77yinw37htrx"] +[gd_resource type="Resource" script_class="AccessoryStats" load_steps=5 format=3 uid="uid://c77yinw37htrx"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_fpys5"] [ext_resource type="Texture2D" uid="uid://cimouel70nxmq" path="res://src/items/accessory/textures/Mask - Stone Prison.png" id="1_ri4uv"] [ext_resource type="Script" uid="uid://b8arlmivk68b" path="res://src/items/accessory/AccessoryStats.cs" id="2_fpys5"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_fpys5") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_fpys5") AccessoryTag = 0 @@ -10,7 +41,6 @@ Name = "Stone Prison" StatDescription = "Cannot Be Removed Once Equipped." FlavorText = "A cage meant to inhibit the transmission and reception of morphic fields. For a time, globe spanning stone-cults believed that such transmission of culture and data from the Tower were the final barrier to a perfect civilization." -SpawnRate = 0.6 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -27,3 +57,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 19 Texture = ExtResource("1_ri4uv") +RarityTag = 2 +SpawnRate = 0.6 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/ammo/Ammo.cs b/Zennysoft.Game.Ma/src/items/ammo/Ammo.cs index ee335a93..5cec4bda 100644 --- a/Zennysoft.Game.Ma/src/items/ammo/Ammo.cs +++ b/Zennysoft.Game.Ma/src/items/ammo/Ammo.cs @@ -3,6 +3,7 @@ using Chickensoft.Collections; using Chickensoft.Introspection; using Chickensoft.Serialization; using Godot; +using Zennysoft.Game.Abstractions; using Zennysoft.Game.Implementation; using Zennysoft.Game.Ma; using Zennysoft.Ma.Adapter; @@ -27,7 +28,7 @@ public partial class Ammo : Node3D, IEquipableItem, IStackable public string StatDescription => Stats.StatDescription; - public float SpawnRate => Stats.SpawnRate; + public float BaseRarity => Stats.SpawnRate; public int ThrowDamage => Stats.ThrowDamage; @@ -56,4 +57,7 @@ public partial class Ammo : Node3D, IEquipableItem, IStackable public int BonusLuck { get; } public bool Glued { get; set; } public ElementalResistanceSet ElementalResistance { get; } + public RarityTag RarityTag => Stats.RarityTag; + public float SpawnRate => Stats.SpawnRate; + public IFloorSpawnTable SpawnsOn => Stats.SpawnsOn; } diff --git a/Zennysoft.Game.Ma/src/items/ammo/resources/Eolic Shells.tres b/Zennysoft.Game.Ma/src/items/ammo/resources/Eolic Shells.tres index 55b4953d..3be6b6f9 100644 --- a/Zennysoft.Game.Ma/src/items/ammo/resources/Eolic Shells.tres +++ b/Zennysoft.Game.Ma/src/items/ammo/resources/Eolic Shells.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AmmoStats" load_steps=3 format=3 uid="uid://kbialkqo0ibs"] +[gd_resource type="Resource" script_class="AmmoStats" load_steps=5 format=3 uid="uid://kbialkqo0ibs"] [ext_resource type="Texture2D" uid="uid://cgqkhgeirws2y" path="res://src/items/ammo/textures/air bullets.png" id="1_6f2ei"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_727be"] [ext_resource type="Script" uid="uid://cmfwvjjargi0s" path="res://src/items/ammo/AmmoStats.cs" id="2_727be"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_727be") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_727be") AmmoElement = 1 @@ -10,7 +41,6 @@ InitialCount = 3 Name = "Aeolic Shells" StatDescription = "" FlavorText = "Eolic casting-shells useable by a Geomantic Reactor." -SpawnRate = 0.1 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -27,4 +57,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_6f2ei") +RarityTag = 3 +SpawnRate = 0.1 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://cmfwvjjargi0s" diff --git a/Zennysoft.Game.Ma/src/items/ammo/resources/HydricAmmo.tres b/Zennysoft.Game.Ma/src/items/ammo/resources/HydricAmmo.tres index f4b8027d..401b777c 100644 --- a/Zennysoft.Game.Ma/src/items/ammo/resources/HydricAmmo.tres +++ b/Zennysoft.Game.Ma/src/items/ammo/resources/HydricAmmo.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AmmoStats" load_steps=3 format=3 uid="uid://cpyosjclxlh88"] +[gd_resource type="Resource" script_class="AmmoStats" load_steps=5 format=3 uid="uid://cpyosjclxlh88"] [ext_resource type="Texture2D" uid="uid://bfsbip38oxifo" path="res://src/items/ammo/textures/Water Bullets.png" id="1_mv5fs"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_tu38n"] [ext_resource type="Script" uid="uid://cmfwvjjargi0s" path="res://src/items/ammo/AmmoStats.cs" id="2_tu38n"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_tu38n") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_tu38n") AmmoElement = 3 @@ -10,7 +41,6 @@ InitialCount = 3 Name = "Hydric Shells" StatDescription = "Hydric casting-shells useable by a Geomantic Reactor." FlavorText = "" -SpawnRate = 0.1 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -27,4 +57,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_mv5fs") +RarityTag = 3 +SpawnRate = 0.1 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://cmfwvjjargi0s" diff --git a/Zennysoft.Game.Ma/src/items/ammo/resources/IgneousAmmo.tres b/Zennysoft.Game.Ma/src/items/ammo/resources/IgneousAmmo.tres index 30b3b474..b71455c3 100644 --- a/Zennysoft.Game.Ma/src/items/ammo/resources/IgneousAmmo.tres +++ b/Zennysoft.Game.Ma/src/items/ammo/resources/IgneousAmmo.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AmmoStats" load_steps=3 format=3 uid="uid://bltcy30dohjrf"] +[gd_resource type="Resource" script_class="AmmoStats" load_steps=5 format=3 uid="uid://bltcy30dohjrf"] [ext_resource type="Texture2D" uid="uid://bqu5qispxvkmy" path="res://src/items/ammo/textures/Fire Bullets.png" id="1_6lwo5"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_p60hg"] [ext_resource type="Script" uid="uid://cmfwvjjargi0s" path="res://src/items/ammo/AmmoStats.cs" id="2_p60hg"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_p60hg") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_p60hg") AmmoElement = 4 @@ -10,7 +41,6 @@ InitialCount = 3 Name = "Igneous Shells" StatDescription = "Igneous casting-shells useable by a Geomantic Reactor." FlavorText = "" -SpawnRate = 0.1 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -27,4 +57,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_6lwo5") +RarityTag = 3 +SpawnRate = 0.1 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://cmfwvjjargi0s" diff --git a/Zennysoft.Game.Ma/src/items/ammo/resources/Kugloj.tres b/Zennysoft.Game.Ma/src/items/ammo/resources/Kugloj.tres index 5c36716f..ca00559a 100644 --- a/Zennysoft.Game.Ma/src/items/ammo/resources/Kugloj.tres +++ b/Zennysoft.Game.Ma/src/items/ammo/resources/Kugloj.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AmmoStats" load_steps=3 format=3 uid="uid://ccmnjavqxfykq"] +[gd_resource type="Resource" script_class="AmmoStats" load_steps=5 format=3 uid="uid://ccmnjavqxfykq"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_b7evy"] [ext_resource type="Texture2D" uid="uid://bfhccoch4eyax" path="res://src/items/ammo/textures/kugloj.png" id="1_jj5px"] [ext_resource type="Script" uid="uid://cmfwvjjargi0s" path="res://src/items/ammo/AmmoStats.cs" id="2_b7evy"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_b7evy") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_b7evy") AmmoElement = 0 @@ -12,7 +43,6 @@ StatDescription = "For use with a Persuader" FlavorText = "The casings bear all the hallmarks of multiple uses and show tremendous care in their assembly. " -SpawnRate = 0.01 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_jj5px") +RarityTag = 3 +SpawnRate = 0.01 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://cmfwvjjargi0s" diff --git a/Zennysoft.Game.Ma/src/items/ammo/resources/Telluric Shells.tres b/Zennysoft.Game.Ma/src/items/ammo/resources/Telluric Shells.tres index b289a227..165b9362 100644 --- a/Zennysoft.Game.Ma/src/items/ammo/resources/Telluric Shells.tres +++ b/Zennysoft.Game.Ma/src/items/ammo/resources/Telluric Shells.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="AmmoStats" load_steps=3 format=3 uid="uid://1f1binw4ohr"] +[gd_resource type="Resource" script_class="AmmoStats" load_steps=5 format=3 uid="uid://1f1binw4ohr"] [ext_resource type="Texture2D" uid="uid://b4tmduahuoij5" path="res://src/items/ammo/textures/earth bullets.png" id="1_7203r"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_qi3jr"] [ext_resource type="Script" uid="uid://cmfwvjjargi0s" path="res://src/items/ammo/AmmoStats.cs" id="2_qi3jr"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_qi3jr") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_qi3jr") AmmoElement = 2 @@ -10,7 +41,6 @@ InitialCount = 3 Name = "Eolic Shells" StatDescription = "Telluric casting-shells useable by a Geomantic Reactor." FlavorText = "" -SpawnRate = 0.1 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -27,4 +57,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_7203r") +RarityTag = 3 +SpawnRate = 0.1 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://cmfwvjjargi0s" diff --git a/Zennysoft.Game.Ma/src/items/armor/Armor.cs b/Zennysoft.Game.Ma/src/items/armor/Armor.cs index 3b9e5ca6..f4d75228 100644 --- a/Zennysoft.Game.Ma/src/items/armor/Armor.cs +++ b/Zennysoft.Game.Ma/src/items/armor/Armor.cs @@ -2,6 +2,8 @@ using Chickensoft.AutoInject; using Chickensoft.Introspection; using Chickensoft.Serialization; using Godot; +using System.Collections.Generic; +using Zennysoft.Game.Abstractions; using Zennysoft.Ma.Adapter; using Zennysoft.Ma.Adapter.Entity; @@ -16,18 +18,18 @@ public partial class Armor : Node3D, IArmor public override void _Ready() { - Init(); + Init(); } public void Init() { - if (_sprite != null) - _sprite.Texture = Stats.Texture; - _bonusDamage = Stats.BonusAttack; - _bonusDefense = Stats.BonusDefense; - _bonusLuck = Stats.BonusLuck; - _bonusHp = Stats.BonusHP; - _bonusVt = Stats.BonusVT; + if (_sprite != null) + _sprite.Texture = Stats.Texture; + _bonusDamage = Stats.BonusAttack; + _bonusDefense = Stats.BonusDefense; + _bonusLuck = Stats.BonusLuck; + _bonusHp = Stats.BonusHP; + _bonusVt = Stats.BonusVT; } public string ItemName => Stats.Name; @@ -36,8 +38,6 @@ public partial class Armor : Node3D, IArmor public string FlavorText => Stats.FlavorText; - public float SpawnRate => Stats.SpawnRate; - public int ThrowDamage => Stats.ThrowDamage; public float ThrowSpeed => Stats.ThrowSpeed; @@ -99,4 +99,7 @@ public partial class Armor : Node3D, IArmor public ArmorTag ArmorTag => Stats.ArmorTag; public Texture2D GetTexture() => Stats.Texture; + public RarityTag RarityTag => Stats.RarityTag; + public float SpawnRate => Stats.SpawnRate; + public IFloorSpawnTable SpawnsOn => Stats.SpawnsOn; } diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/AtonersAdornments.tres b/Zennysoft.Game.Ma/src/items/armor/resources/AtonersAdornments.tres index 5b347e4e..d4c4a68b 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/AtonersAdornments.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/AtonersAdornments.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://ce2vfa2t3io67"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://ce2vfa2t3io67"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="1_6r2bl"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_868q4"] [ext_resource type="Texture2D" uid="uid://bhhxd7cphx0q2" path="res://src/items/armor/textures/Atoner's Adornments.png" id="1_wqsgh"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_868q4") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_6r2bl") _telluricResistance = 0.0 @@ -16,7 +47,6 @@ ArmorTag = 0 Name = "Atoner's Adornments" StatDescription = "" FlavorText = "" -SpawnRate = 0.7 BonusAttack = 0 BonusDefense = 1 BonusLuck = 0 @@ -33,3 +63,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_wqsgh") +RarityTag = 1 +SpawnRate = 0.7 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/BlastArmor.tres b/Zennysoft.Game.Ma/src/items/armor/resources/BlastArmor.tres index 4ac6a073..1863be18 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/BlastArmor.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/BlastArmor.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://dnj4ybk0fhntx"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://dnj4ybk0fhntx"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_3srmd"] [ext_resource type="Texture2D" uid="uid://hsxcbhljua4q" path="res://src/items/armor/textures/blastsuitt.png" id="1_8mgq5"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="2_3srmd"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_3srmd") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_3srmd") _telluricResistance = 0.0 @@ -17,7 +48,6 @@ Name = "Blast Armor" StatDescription = "" FlavorText = "Tremendously durable armor adapted from the outer casing of scouting androids that found their way to the Tower near the end of the final millenium. The souls of synthetic life had little time to accrue grave sins and as such purified far sooner than their creators." -SpawnRate = 0.01 BonusAttack = 0 BonusDefense = 9 BonusLuck = 0 @@ -34,3 +64,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_8mgq5") +RarityTag = 1 +SpawnRate = 0.01 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/DemonRobe.tres b/Zennysoft.Game.Ma/src/items/armor/resources/DemonRobe.tres index 77fdcd48..3a5b446a 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/DemonRobe.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/DemonRobe.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://bbakqutps7jn6"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://bbakqutps7jn6"] [ext_resource type="Texture2D" uid="uid://cen481sdhh8uj" path="res://src/items/armor/textures/Demon Robe.png" id="1_1o8ag"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_cwod3"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="2_cwod3"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_cwod3") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_cwod3") _telluricResistance = 0.0 @@ -17,7 +48,6 @@ Name = "Demon Robe" StatDescription = "" FlavorText = "Ceremonial robes worn by the magistrate of a former Hell. Celestial punishment, at all levels of creative brutality that karma could demand, should still carry with it an air of grace." -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 7 BonusLuck = 0 @@ -34,3 +64,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_1o8ag") +RarityTag = 1 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/GoddessRobe.tres b/Zennysoft.Game.Ma/src/items/armor/resources/GoddessRobe.tres index b2eb5f05..24014c5c 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/GoddessRobe.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/GoddessRobe.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://dc0qjer88chme"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://dc0qjer88chme"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="1_3mc7x"] [ext_resource type="Texture2D" uid="uid://tluihosxjb1y" path="res://src/items/armor/textures/Goddess Robe.png" id="1_b51k4"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_ihfcy"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_ihfcy") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_3mc7x") @@ -19,7 +50,6 @@ FlavorText = "Divine attire of a loved one no longer inhabiting the Tower, well Be sure to show the same level of care for such a memento. " -SpawnRate = 0.02 BonusAttack = 0 BonusDefense = 8 BonusLuck = 0 @@ -36,3 +66,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_b51k4") +RarityTag = 1 +SpawnRate = 0.02 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/HolyBarrier.tres b/Zennysoft.Game.Ma/src/items/armor/resources/HolyBarrier.tres index bc86d9cb..7359af16 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/HolyBarrier.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/HolyBarrier.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://dfyv783nh5wyj"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://dfyv783nh5wyj"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_0uq6f"] [ext_resource type="Texture2D" uid="uid://c28ev6nytq3su" path="res://src/items/armor/textures/Holy Barrier.png" id="1_yq22p"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="2_0uq6f"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_0uq6f") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_0uq6f") _telluricResistance = 0.0 @@ -19,7 +50,6 @@ FlavorText = "Armor from a country of renowned spell casters. The defensive spell upon it was often re-cast whenever needed, though it is unlikely any descendents of such talents have existed for thousands of years. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 20 BonusLuck = 0 @@ -36,3 +66,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_yq22p") +RarityTag = 1 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/JaguarSuit.tres b/Zennysoft.Game.Ma/src/items/armor/resources/JaguarSuit.tres index fa081d2f..b81ef446 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/JaguarSuit.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/JaguarSuit.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://vangfekav0c"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://vangfekav0c"] [ext_resource type="Texture2D" uid="uid://8ls7ei4nl6le" path="res://src/items/armor/textures/Jaguar Suit.png" id="1_7p33d"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_aw6ev"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="2_aw6ev"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_aw6ev") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_aw6ev") _telluricResistance = 0.0 @@ -19,7 +50,6 @@ FlavorText = "Inhabiting the character of another offers freedom to embrace emot Such activities must be tried for oneself in order to see this world of charm. " -SpawnRate = 0.4 BonusAttack = 3 BonusDefense = 5 BonusLuck = 0 @@ -36,3 +66,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_7p33d") +RarityTag = 1 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/LogisticiansGarb.tres b/Zennysoft.Game.Ma/src/items/armor/resources/LogisticiansGarb.tres index 95d82d8b..5734a321 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/LogisticiansGarb.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/LogisticiansGarb.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://chhxktntl4k8r"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://chhxktntl4k8r"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="1_frqfh"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_oa8jj"] [ext_resource type="Texture2D" uid="uid://3acy2gsstq4u" path="res://src/items/armor/textures/Logisticians Garb.png" id="1_sm3rm"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_oa8jj") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_frqfh") _telluricResistance = 0.0 @@ -18,7 +49,6 @@ StatDescription = "Raises LUCK." FlavorText = "Attire donned by a caring, but cunning, leader in the world below. At it's height, the temple complex was a haven for the ostracized and the estranged. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 6 BonusLuck = 5 @@ -35,3 +65,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_sm3rm") +RarityTag = 1 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/MysteryArmor.tres b/Zennysoft.Game.Ma/src/items/armor/resources/MysteryArmor.tres index b07827ce..abca896b 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/MysteryArmor.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/MysteryArmor.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://05hilwkmrs7a"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://05hilwkmrs7a"] [ext_resource type="Texture2D" uid="uid://esqaln68twiw" path="res://src/items/Icons/Unidentified Item.png" id="1_7ghri"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_q2grk"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="1_s5wnf"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_q2grk") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_s5wnf") _telluricResistance = 0.0 @@ -16,7 +47,6 @@ ArmorTag = 0 Name = "Unidentified Adornments" StatDescription = "Unidentified Adornments." FlavorText = "" -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -33,4 +63,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 2 Texture = ExtResource("1_7ghri") +RarityTag = 1 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://dqtp6ewvttoyu" diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/RustedPlate.tres b/Zennysoft.Game.Ma/src/items/armor/resources/RustedPlate.tres index d0901e52..587b9737 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/RustedPlate.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/RustedPlate.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://mxn5jkoejpx5"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://mxn5jkoejpx5"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_hcsmi"] [ext_resource type="Texture2D" uid="uid://d2rcqxx5glg11" path="res://src/items/armor/textures/Rusted Plate.png" id="1_twb8p"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="2_hcsmi"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_hcsmi") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_hcsmi") _telluricResistance = 0.0 @@ -17,7 +48,6 @@ Name = "Rusted Plate" StatDescription = "" FlavorText = "A rusted suit of armor from a bygone age. Provides minimal defensive benefits but may perhaps endear one to the aesthetic charms of oxidized alloy." -SpawnRate = 0.6 BonusAttack = 0 BonusDefense = 2 BonusLuck = 0 @@ -34,3 +64,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_twb8p") +RarityTag = 1 +SpawnRate = 0.6 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/SaintCloth.tres b/Zennysoft.Game.Ma/src/items/armor/resources/SaintCloth.tres index 84bf51f7..78a6b266 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/SaintCloth.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/SaintCloth.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://cn8d8d2m8g2cl"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://cn8d8d2m8g2cl"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_534n3"] [ext_resource type="Texture2D" uid="uid://dvkl21xesr4oe" path="res://src/items/armor/textures/Saint Cloth.png" id="1_svley"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="2_534n3"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_534n3") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_534n3") _telluricResistance = 20.0 @@ -19,7 +50,6 @@ FlavorText = "Eternally blessed armor that appears to those who have proven thei Grants unparalleled power and defense that draws upon one's 7th sense. " -SpawnRate = 0.01 BonusAttack = 0 BonusDefense = 12 BonusLuck = 0 @@ -36,3 +66,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_svley") +RarityTag = 1 +SpawnRate = 0.01 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/StoneSafety.tres b/Zennysoft.Game.Ma/src/items/armor/resources/StoneSafety.tres index 0975a8c8..182242af 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/StoneSafety.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/StoneSafety.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://dvctqg5decxv5"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://dvctqg5decxv5"] [ext_resource type="Texture2D" uid="uid://d15idh8jnb7ha" path="res://src/items/armor/textures/Stone Safety.png" id="1_abjuy"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_gppme"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="2_gppme"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_gppme") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_gppme") _telluricResistance = 0.0 @@ -19,7 +50,6 @@ FlavorText = "Heavy armor that irrevocably entombs the user. Originally intended as a burial shroud, many since have donned these suits in forgivable ignorance as no trace remains of such context. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 5 BonusLuck = 0 @@ -36,3 +66,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 19 Texture = ExtResource("1_abjuy") +RarityTag = 1 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/TemporalGuard.tres b/Zennysoft.Game.Ma/src/items/armor/resources/TemporalGuard.tres index 740e36a1..c28e9f84 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/TemporalGuard.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/TemporalGuard.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://vqnffib54d6w"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://vqnffib54d6w"] [ext_resource type="Texture2D" uid="uid://dj35dweo7572y" path="res://src/items/armor/textures/Temporal Guard.png" id="1_sha5c"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_wnrbn"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="2_wnrbn"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_wnrbn") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_wnrbn") _telluricResistance = 0.0 @@ -19,7 +50,6 @@ FlavorText = "Armor bound to the current temporal floating point layer of the to As the floors age, the laws of reality within them become skewed and strange. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 8 BonusLuck = 0 @@ -36,3 +66,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 1 Texture = ExtResource("1_sha5c") +RarityTag = 1 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/Vocationer's Armor.tres b/Zennysoft.Game.Ma/src/items/armor/resources/Vocationer's Armor.tres index 91f786c2..c98b5f6f 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/Vocationer's Armor.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/Vocationer's Armor.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://dnu241lh47oqd"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://dnu241lh47oqd"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_bqvp7"] [ext_resource type="Texture2D" uid="uid://d3i6d3yiho4xf" path="res://src/items/armor/textures/Vocationer's Armor.png" id="1_thchg"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="2_bqvp7"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_bqvp7") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_bqvp7") _telluricResistance = 0.0 @@ -17,7 +48,6 @@ Name = "Vocationer's Armor" StatDescription = "" FlavorText = "Standard issue scaled mail for those who have proven their base aptitude for combat. The original bearer of the scales has long been forgotten." -SpawnRate = 0.6 BonusAttack = 0 BonusDefense = 1 BonusLuck = 0 @@ -34,3 +64,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_thchg") +RarityTag = 1 +SpawnRate = 0.6 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/armor/resources/WoodenArmament.tres b/Zennysoft.Game.Ma/src/items/armor/resources/WoodenArmament.tres index cdea8ad9..2bc7cd2f 100644 --- a/Zennysoft.Game.Ma/src/items/armor/resources/WoodenArmament.tres +++ b/Zennysoft.Game.Ma/src/items/armor/resources/WoodenArmament.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ArmorStats" load_steps=3 format=3 uid="uid://dq4c6an78qa4q"] +[gd_resource type="Resource" script_class="ArmorStats" load_steps=5 format=3 uid="uid://dq4c6an78qa4q"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_bgf4p"] [ext_resource type="Script" uid="uid://dqtp6ewvttoyu" path="res://src/items/armor/ArmorStats.cs" id="1_bkpin"] [ext_resource type="Texture2D" uid="uid://b8wcyq7l4m60c" path="res://src/items/armor/textures/Wood Armor.png" id="1_wq31s"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_bgf4p") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_bkpin") _telluricResistance = 0.0 @@ -19,7 +50,6 @@ FlavorText = "Moderately effective armor lovingly carved from the snakewood tree Though both the traveler and the homeland are gone, this token remains. Such tragic nostalgias appeal eternally to the divine beings locked within the Tower." -SpawnRate = 0.7 BonusAttack = 0 BonusDefense = 2 BonusLuck = 0 @@ -36,3 +66,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_wq31s") +RarityTag = 1 +SpawnRate = 0.7 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/box/BoxItem.cs b/Zennysoft.Game.Ma/src/items/box/BoxItem.cs index 91b8a707..9c7457ab 100644 --- a/Zennysoft.Game.Ma/src/items/box/BoxItem.cs +++ b/Zennysoft.Game.Ma/src/items/box/BoxItem.cs @@ -2,6 +2,8 @@ using Chickensoft.AutoInject; using Chickensoft.Introspection; using Chickensoft.Serialization; using Godot; +using System.Collections.Generic; +using Zennysoft.Game.Abstractions; using Zennysoft.Game.Ma; using Zennysoft.Ma.Adapter; @@ -22,7 +24,7 @@ public partial class BoxItem : Node3D, IBaseInventoryItem public string FlavorText => Stats.FlavorText; - public float SpawnRate => Stats.SpawnRate; + public float BaseRarity => Stats.SpawnRate; public int ThrowDamage => Stats.ThrowDamage; @@ -36,4 +38,8 @@ public partial class BoxItem : Node3D, IBaseInventoryItem { _sprite.Texture = Stats.Texture; } + + public RarityTag RarityTag => Stats.RarityTag; + public float SpawnRate => Stats.SpawnRate; + public IFloorSpawnTable SpawnsOn => Stats.SpawnsOn; } diff --git a/Zennysoft.Game.Ma/src/items/box/resources/AlluringAcquisition.tres b/Zennysoft.Game.Ma/src/items/box/resources/AlluringAcquisition.tres index 72f8a828..c00061cf 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/AlluringAcquisition.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/AlluringAcquisition.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://ds7s722m5y7m4"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://ds7s722m5y7m4"] [ext_resource type="Texture2D" uid="uid://jm3kjcgxrx1k" path="res://src/items/box/textures/Alluring Box.png" id="1_dgx1x"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_ncstm"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_ncstm"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_ncstm") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_ncstm") DamageToPlayer = 0 @@ -12,7 +43,6 @@ FlavorText = "A ubiquitous and integral part of the economy of artifacts in the Cast your lot and sate your desires. " -SpawnRate = 0.7 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 14 Texture = ExtResource("1_dgx1x") +RarityTag = 2 +SpawnRate = 0.7 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/Asceticism.tres b/Zennysoft.Game.Ma/src/items/box/resources/Asceticism.tres index 236daea9..8ff4ba91 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/Asceticism.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/Asceticism.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://6c0t45setc82"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://6c0t45setc82"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_6h66g"] [ext_resource type="Texture2D" uid="uid://di4nqipbg66nh" path="res://src/items/box/textures/Asceticism.png" id="1_wwmaf"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_6h66g"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_6h66g") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_6h66g") DamageToPlayer = 0 @@ -12,7 +43,6 @@ FlavorText = "A rejection of all indulgences. Little is absolutely necessary in this world. " -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 16 Texture = ExtResource("1_wwmaf") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/BloodAcquisition.tres b/Zennysoft.Game.Ma/src/items/box/resources/BloodAcquisition.tres index 2e8068c4..abbc242f 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/BloodAcquisition.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/BloodAcquisition.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://deebat2kuxfo3"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://deebat2kuxfo3"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_k6pqw"] [ext_resource type="Texture2D" uid="uid://cw3530or23fdf" path="res://src/items/box/textures/Blood Box.png" id="1_p2ro7"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_k6pqw"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_k6pqw") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_k6pqw") DamageToPlayer = 0 @@ -12,7 +43,6 @@ FlavorText = "An exchange of one's life force for a token of the Tower's favor. At present, the box weighs little and engenders a certain curiosity. " -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 10 Texture = ExtResource("1_p2ro7") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/EmptyPromise.tres b/Zennysoft.Game.Ma/src/items/box/resources/EmptyPromise.tres index ed67d550..740dccbf 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/EmptyPromise.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/EmptyPromise.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://cgkorwblwr12t"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://cgkorwblwr12t"] [ext_resource type="Texture2D" uid="uid://eclhe8el3hrn" path="res://src/items/box/textures/Empty Box.png" id="1_650jj"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="1_i336w"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_q7l1w"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_q7l1w") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_i336w") @@ -12,7 +43,6 @@ FlavorText = "An empty box. Possesses a certain weight to it that may allow it to be propelled by force quite nicely. Though, there are likely those in the Tower who may be open to exchange of such, or really any, objects." -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_650jj") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/EquivalenceBox.tres b/Zennysoft.Game.Ma/src/items/box/resources/EquivalenceBox.tres index f2f47791..5cef6689 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/EquivalenceBox.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/EquivalenceBox.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://br2cp1hyjfod8"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://br2cp1hyjfod8"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_p8pt8"] [ext_resource type="Texture2D" uid="uid://bimuxe858en5i" path="res://src/items/box/textures/Equivalence Box.png" id="1_y716o"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_p8pt8"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_p8pt8") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_p8pt8") DamageToPlayer = 0 @@ -12,7 +43,6 @@ FlavorText = "A bartering box used in fair trade. Though, not necessarily trade of equal value. " -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 11 Texture = ExtResource("1_y716o") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/FashionableAcquisition.tres b/Zennysoft.Game.Ma/src/items/box/resources/FashionableAcquisition.tres index 686abf0d..1dd7a688 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/FashionableAcquisition.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/FashionableAcquisition.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://bit6jsgs4yl7t"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://bit6jsgs4yl7t"] [ext_resource type="Texture2D" uid="uid://b11modhqb6ys" path="res://src/items/box/textures/Fashionable Box.png" id="1_85ci2"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_pe0kd"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_pe0kd"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_pe0kd") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_pe0kd") DamageToPlayer = 0 @@ -12,7 +43,6 @@ FlavorText = "A box used to store reignments. Fashion to some, function to others; the priority is a personal choice. " -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 6 Texture = ExtResource("1_85ci2") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/FuryBox.tres b/Zennysoft.Game.Ma/src/items/box/resources/FuryBox.tres index 09d98aa5..0c052f67 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/FuryBox.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/FuryBox.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://g3buxgpmjcio"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://g3buxgpmjcio"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_1iwnl"] [ext_resource type="Texture2D" uid="uid://bov7t5aijughy" path="res://src/items/box/textures/Fury Box.png" id="1_4alpg"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_1iwnl"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_1iwnl") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_1iwnl") DamageToPlayer = 0 @@ -12,7 +43,6 @@ FlavorText = "A box used to store weapons. The moss-haired legionnaire is often seen harvesting armaments from the halls of the Tower and, after thorough maintenance, sealing them once more in containers much like these. " -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 5 Texture = ExtResource("1_4alpg") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/GlueJar.tres b/Zennysoft.Game.Ma/src/items/box/resources/GlueJar.tres index 1e9fbbe9..4dddfa56 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/GlueJar.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/GlueJar.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://bb44i0nb2ov3i"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://bb44i0nb2ov3i"] [ext_resource type="Texture2D" uid="uid://5ius1xodl6gw" path="res://src/items/box/textures/Glue Jar.png" id="1_kqlme"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_w23fa"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_w23fa"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_w23fa") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_w23fa") DamageToPlayer = 0 @@ -11,7 +42,6 @@ StatDescription = "" FlavorText = "Fuses all equipped items to the user upon opening with a powerful adhesive, making them unable to be unequipped. Possesses a pleasant fragrance." -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -28,4 +58,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 15 Texture = ExtResource("1_kqlme") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/HealthyAcquisition.tres b/Zennysoft.Game.Ma/src/items/box/resources/HealthyAcquisition.tres index 916dfbc9..ef541385 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/HealthyAcquisition.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/HealthyAcquisition.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://icdlurnmjryh"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://icdlurnmjryh"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_iw3ll"] [ext_resource type="Texture2D" uid="uid://d5u7uhqhv422" path="res://src/items/box/textures/Healthy Box.png" id="1_svub6"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_iw3ll"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_iw3ll") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_iw3ll") DamageToPlayer = 0 @@ -12,7 +43,6 @@ FlavorText = "A box for medical emergencies. Occasionally contains rare pharmaceuticals prized by collectors. " -SpawnRate = 0.6 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 4 Texture = ExtResource("1_svub6") +RarityTag = 2 +SpawnRate = 0.6 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/IdentityAcquisition.tres b/Zennysoft.Game.Ma/src/items/box/resources/IdentityAcquisition.tres index 4eebd7dd..76a52ce9 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/IdentityAcquisition.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/IdentityAcquisition.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://b2buq6ckkam7i"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://b2buq6ckkam7i"] [ext_resource type="Texture2D" uid="uid://d0i6gjoiql26q" path="res://src/items/box/textures/Identity Box.png" id="1_dwyk7"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_pssvy"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_pssvy"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_pssvy") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_pssvy") DamageToPlayer = 0 @@ -12,7 +43,6 @@ FlavorText = "A box used to hold divine embodiments. Each holds a fond memory of a loved one, extracted and placed within its construction. " -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 9 Texture = ExtResource("1_dwyk7") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/LotteryBox.tres b/Zennysoft.Game.Ma/src/items/box/resources/LotteryBox.tres index 52cd1f1d..b33153b1 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/LotteryBox.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/LotteryBox.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://k0uhsuxvyegw"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://k0uhsuxvyegw"] [ext_resource type="Texture2D" uid="uid://c2rcldr6hlr8m" path="res://src/items/box/textures/Lottery Box.png" id="1_bpsrl"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_jo2rt"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_xe8mc"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_jo2rt") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_xe8mc") DamageToPlayer = 0 @@ -12,7 +43,6 @@ FlavorText = "A box that scrambles reality. A favorite of chaotic personality types. " -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 12 Texture = ExtResource("1_bpsrl") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/Malfunction.tres b/Zennysoft.Game.Ma/src/items/box/resources/Malfunction.tres index 39fe2248..eae35475 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/Malfunction.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/Malfunction.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://dsb2gcjeme5yy"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://dsb2gcjeme5yy"] [ext_resource type="Texture2D" uid="uid://bcdtr55kx6844" path="res://src/items/box/textures/Malfunction.png" id="1_3scao"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_vgter"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_vgter"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_vgter") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_vgter") DamageToPlayer = 70 @@ -11,7 +42,6 @@ StatDescription = "" FlavorText = "A broken, volatile box that threatens to explode. Will damage the opener or anything it comes into contact with. Hence, many find it wise to eject it from their personage at the earliest possible convenience." -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -28,4 +58,7 @@ ThrowSpeed = 12.0 ThrowDamage = 70 ItemTag = 3 Texture = ExtResource("1_3scao") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/MysticalAcquisition.tres b/Zennysoft.Game.Ma/src/items/box/resources/MysticalAcquisition.tres index 4e313d07..804d12b7 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/MysticalAcquisition.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/MysticalAcquisition.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://cfp3ust1pw76y"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://cfp3ust1pw76y"] [ext_resource type="Texture2D" uid="uid://cenjp5ylog4sk" path="res://src/items/box/textures/MysticalBox.png" id="1_rfv5l"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_tjkfp"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_tjkfp"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_tjkfp") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_tjkfp") DamageToPlayer = 0 @@ -12,7 +43,6 @@ FlavorText = "A box used to store written wisdom. Such valuable information should be kept well protected. " -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 8 Texture = ExtResource("1_rfv5l") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/ScholarsBox.tres b/Zennysoft.Game.Ma/src/items/box/resources/ScholarsBox.tres index 553202f5..78d4f137 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/ScholarsBox.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/ScholarsBox.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://ba1ihsi6culef"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://ba1ihsi6culef"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_674ao"] [ext_resource type="Texture2D" uid="uid://dgdktc6woo7kx" path="res://src/items/box/textures/Scholars Box.png" id="1_xyiwq"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_tbg32"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_674ao") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_tbg32") DamageToPlayer = 0 @@ -12,7 +43,6 @@ FlavorText = "A box inscribed with a simplistic reality altering spell. Favorite of documentarians and record keepers. " -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 13 Texture = ExtResource("1_xyiwq") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/SpeculativeAcquisition.tres b/Zennysoft.Game.Ma/src/items/box/resources/SpeculativeAcquisition.tres index 31fd95c6..d1d89a28 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/SpeculativeAcquisition.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/SpeculativeAcquisition.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://cf8mf2qguf7q1"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://cf8mf2qguf7q1"] [ext_resource type="Texture2D" uid="uid://btlkiw4ros5om" path="res://src/items/box/textures/Speculative Box.png" id="1_1eojb"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_ucc84"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_ucc84"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_ucc84") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_ucc84") DamageToPlayer = 0 @@ -11,7 +42,6 @@ StatDescription = "A box that holds a random box within it." FlavorText = "A box that promises yet another, different promise. " -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -28,4 +58,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 7 Texture = ExtResource("1_1eojb") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/TrickstersBox.tres b/Zennysoft.Game.Ma/src/items/box/resources/TrickstersBox.tres index 0c48a7f2..a0908d37 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/TrickstersBox.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/TrickstersBox.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://cytyjmo2kjtul"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://cytyjmo2kjtul"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_7rwoq"] [ext_resource type="Texture2D" uid="uid://cnr5ljn44ncoh" path="res://src/items/box/textures/Trickster's Box Box.png" id="1_poy28"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_7rwoq"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_7rwoq") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_7rwoq") DamageToPlayer = 0 @@ -10,7 +41,6 @@ Name = "Trickster's Box" StatDescription = "" FlavorText = "A cruel joke likely crafted out of excessive boredom. " -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -27,4 +57,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 17 Texture = ExtResource("1_poy28") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/box/resources/TrinketBox.tres b/Zennysoft.Game.Ma/src/items/box/resources/TrinketBox.tres index 56b6956c..c2907a82 100644 --- a/Zennysoft.Game.Ma/src/items/box/resources/TrinketBox.tres +++ b/Zennysoft.Game.Ma/src/items/box/resources/TrinketBox.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="BoxItemStats" load_steps=3 format=3 uid="uid://bhfs0jk02jha2"] +[gd_resource type="Resource" script_class="BoxItemStats" load_steps=5 format=3 uid="uid://bhfs0jk02jha2"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_4l6ua"] [ext_resource type="Texture2D" uid="uid://c1bb88y1lppbu" path="res://src/items/box/textures/Trinket Box.png" id="1_qdrns"] [ext_resource type="Script" uid="uid://vuavr681au06" path="res://src/items/accessory/BoxItemStats.cs" id="2_4l6ua"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_4l6ua") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_4l6ua") DamageToPlayer = 0 @@ -12,7 +43,6 @@ FlavorText = "A box used to hold rare gems and valuables. Many of the Tower's inhabitants could not stand to see such treasures loose and scattered about, falling into cracks or presenting slipping hazards. And, after all, it is a pleasant feeling to organize one's home. " -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 21 Texture = ExtResource("1_qdrns") +RarityTag = 2 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://vuavr681au06" diff --git a/Zennysoft.Game.Ma/src/items/consumable/ConsumableItem.cs b/Zennysoft.Game.Ma/src/items/consumable/ConsumableItem.cs index 43f61d3a..23ade109 100644 --- a/Zennysoft.Game.Ma/src/items/consumable/ConsumableItem.cs +++ b/Zennysoft.Game.Ma/src/items/consumable/ConsumableItem.cs @@ -2,6 +2,8 @@ using Chickensoft.AutoInject; using Chickensoft.Introspection; using Chickensoft.Serialization; using Godot; +using System.Collections.Generic; +using Zennysoft.Game.Abstractions; using Zennysoft.Ma.Adapter; namespace Zennysoft.Game.Ma; @@ -21,7 +23,7 @@ public partial class ConsumableItem : Node3D, IBaseInventoryItem public string FlavorText => Stats.FlavorText; - public float SpawnRate => Stats.SpawnRate; + public float BaseRarity => Stats.SpawnRate; public int ThrowDamage => Stats.ThrowDamage; @@ -42,4 +44,8 @@ public partial class ConsumableItem : Node3D, IBaseInventoryItem [Save("consumable_item_stats")] public ConsumableItemStats Stats { get; set; } = new ConsumableItemStats(); public Texture2D GetTexture() => Stats.Texture; + + public RarityTag RarityTag => Stats.RarityTag; + public float SpawnRate => Stats.SpawnRate; + public IFloorSpawnTable SpawnsOn => Stats.SpawnsOn; } diff --git a/Zennysoft.Game.Ma/src/items/consumable/resources/Amrit Electuary.tres b/Zennysoft.Game.Ma/src/items/consumable/resources/Amrit Electuary.tres index cf50fa23..ee605c2d 100644 --- a/Zennysoft.Game.Ma/src/items/consumable/resources/Amrit Electuary.tres +++ b/Zennysoft.Game.Ma/src/items/consumable/resources/Amrit Electuary.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="ConsumableItemStats" load_steps=3 format=3 uid="uid://dns281deffo6q"] +[gd_resource type="Resource" script_class="ConsumableItemStats" load_steps=5 format=3 uid="uid://dns281deffo6q"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_8i8u4"] [ext_resource type="Texture2D" uid="uid://bpdtlhepygb3w" path="res://src/items/consumable/texture/Amrit Electuary.png" id="1_n75f4"] [ext_resource type="Script" uid="uid://cymeea1n4f04i" path="res://src/items/consumable/ConsumableItemStats.cs" id="2_8i8u4"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_8i8u4") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_8i8u4") HealHPAmount = 999 @@ -16,7 +47,6 @@ If HP is full: raises max HP by 25" FlavorText = "A droplet of the heavenly elixir, frozen in time and produced into a restorative electuary. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -33,3 +63,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_n75f4") +RarityTag = 0 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/effect/EffectItem.cs b/Zennysoft.Game.Ma/src/items/effect/EffectItem.cs index b320382c..37f92658 100644 --- a/Zennysoft.Game.Ma/src/items/effect/EffectItem.cs +++ b/Zennysoft.Game.Ma/src/items/effect/EffectItem.cs @@ -3,6 +3,8 @@ using Chickensoft.Collections; using Chickensoft.Introspection; using Chickensoft.Serialization; using Godot; +using System.Collections.Generic; +using Zennysoft.Game.Abstractions; using Zennysoft.Game.Implementation; using Zennysoft.Ma.Adapter; @@ -27,7 +29,7 @@ public partial class EffectItem : Node3D, IBaseInventoryItem, IStackable public string FlavorText => Stats.FlavorText; - public float SpawnRate => Stats.SpawnRate; + public float BaseRarity => Stats.SpawnRate; public int ThrowDamage => Stats.ThrowDamage; @@ -49,4 +51,8 @@ public partial class EffectItem : Node3D, IBaseInventoryItem, IStackable public Texture2D GetTexture() => Stats.Texture; public void SetCount(int count) => Count.OnNext(count); + + public RarityTag RarityTag => Stats.RarityTag; + public float SpawnRate => Stats.SpawnRate; + public IFloorSpawnTable SpawnsOn => Stats.SpawnsOn; } diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/AnBradanFeasa.tres b/Zennysoft.Game.Ma/src/items/effect/resources/AnBradanFeasa.tres index 7d24b2bd..94ca2d52 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/AnBradanFeasa.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/AnBradanFeasa.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://l6ymix5ntg6f"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://l6ymix5ntg6f"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="1_3gj16"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_udmd3"] [ext_resource type="Texture2D" uid="uid://dydqm8yiuiogi" path="res://src/items/effect/textures/An Bradan.png" id="1_volso"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_udmd3") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_3gj16") UsableItemTag = 16 @@ -13,7 +44,6 @@ StatDescription = "Doubles XP received for a short time." FlavorText = "Long, long sought after. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_volso") +RarityTag = 1 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/BlueTalisman.tres b/Zennysoft.Game.Ma/src/items/effect/resources/BlueTalisman.tres index 8aad34f4..d7bedce2 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/BlueTalisman.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/BlueTalisman.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://c3a2pvu1xwn26"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://c3a2pvu1xwn26"] [ext_resource type="Texture2D" uid="uid://bmsp3k1inb55m" path="res://src/items/effect/textures/Blue Talisman.png" id="1_5si68"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_pkr04"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_pkr04"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_pkr04") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_pkr04") UsableItemTag = 21 @@ -14,7 +45,6 @@ FlavorText = "Contains a prayer of protection. There was a time when the shrine below held joyous festivals. These talismans are one of the few reminders of such celebration. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 1 BonusLuck = 0 @@ -31,4 +61,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_5si68") +RarityTag = 2 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/GreenTalisman.tres b/Zennysoft.Game.Ma/src/items/effect/resources/GreenTalisman.tres index 64894ec0..3f0efcc7 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/GreenTalisman.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/GreenTalisman.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://2338gv6ne8jt"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://2338gv6ne8jt"] [ext_resource type="Texture2D" uid="uid://b4brs6e73yjlq" path="res://src/items/effect/textures/Green Talisman.png" id="1_h6noj"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_mnvt1"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_mnvt1"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_mnvt1") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_mnvt1") UsableItemTag = 22 @@ -14,7 +45,6 @@ FlavorText = "Contains a prayer of fortune. In the township that formed below, it was common custom to bequeath such a charm to a loved one when they departed on a journey. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -31,4 +61,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_h6noj") +RarityTag = 2 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/MysteryTag.tres b/Zennysoft.Game.Ma/src/items/effect/resources/MysteryTag.tres index 44c63d88..1f7f68ba 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/MysteryTag.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/MysteryTag.tres @@ -1,16 +1,47 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://2ymi6ooyqyox"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://2ymi6ooyqyox"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_cjvpp"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="1_eeb8x"] [ext_resource type="Texture2D" uid="uid://esqaln68twiw" path="res://src/items/Icons/Unidentified Item.png" id="1_yerq2"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_cjvpp") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_eeb8x") UsableItemTag = 0 ElementalDamageType = 0 +InitialCount = 0 Name = "Unidentified Seal" StatDescription = "Unidentified Seal." FlavorText = "" -SpawnRate = 0.2 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -27,4 +58,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 2 Texture = ExtResource("1_yerq2") +RarityTag = 2 +SpawnRate = 0.2 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/Persiko.tres b/Zennysoft.Game.Ma/src/items/effect/resources/Persiko.tres index 506d0463..d7365953 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/Persiko.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/Persiko.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://bgjxwcdqncq2r"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://bgjxwcdqncq2r"] [ext_resource type="Texture2D" uid="uid://dg8rade5p303m" path="res://src/items/effect/textures/Persiko.png" id="1_nxfnv"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_q0ipf"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_q0ipf"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_q0ipf") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_q0ipf") UsableItemTag = 2 @@ -14,7 +45,6 @@ FlavorText = "Though the orchard's caretakers are long gone, the fruit of heaven None on the surface would ever taste it's gifts again. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -31,4 +61,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_nxfnv") +RarityTag = 2 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/RedTalisman.tres b/Zennysoft.Game.Ma/src/items/effect/resources/RedTalisman.tres index afdf2ea2..3944f9e6 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/RedTalisman.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/RedTalisman.tres @@ -1,19 +1,50 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://cv8p0egs52jaq"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://cv8p0egs52jaq"] [ext_resource type="Texture2D" uid="uid://bqv015du8tk0" path="res://src/items/effect/textures/Orange Talisman.png" id="1_4jur3"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_as50m"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_as50m"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_as50m") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_as50m") UsableItemTag = 23 ElementalDamageType = 0 +InitialCount = 0 Name = "Red Talisman" StatDescription = "Permanently boosts the user's ATK." FlavorText = "Contains a prayer of power. Many believed that the Goddess of the Tower would offer her favor through the prayers inscribed on these charms. Though it would be long, long after until any blessed power validated such requests. " -SpawnRate = 0.2 BonusAttack = 1 BonusDefense = 0 BonusLuck = 0 @@ -30,4 +61,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_4jur3") +RarityTag = 2 +SpawnRate = 0.2 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SciptureSignHeavensRebellion.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SciptureSignHeavensRebellion.tres index bac530ed..edbe2628 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SciptureSignHeavensRebellion.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SciptureSignHeavensRebellion.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://5tbtsch3qagg"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://5tbtsch3qagg"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_jvomr"] [ext_resource type="Texture2D" uid="uid://iiajy3h10e6a" path="res://src/items/effect/textures/Heaven's Rebellion.png" id="1_tuxv5"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_jvomr"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_jvomr") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_jvomr") UsableItemTag = 8 @@ -13,7 +44,6 @@ StatDescription = "Fully heals user and all entities in the current room." FlavorText = "A spell that forces prosperity in a localized field. " -SpawnRate = 0.2 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_tuxv5") +RarityTag = 2 +SpawnRate = 0.2 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignDevicBalance.tres b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignDevicBalance.tres index f27305eb..e6c37510 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignDevicBalance.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignDevicBalance.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://cxfu683mhpu6v"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://cxfu683mhpu6v"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_gddn0"] [ext_resource type="Texture2D" uid="uid://ojyd0rjybuhr" path="res://src/items/effect/textures/Devic Balance.png" id="1_ockb8"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_gddn0"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_gddn0") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_gddn0") UsableItemTag = 6 @@ -13,7 +44,6 @@ StatDescription = "Obliterates half the entities in the currently occupied room. FlavorText = "In the pursuit of beautiful tales, divine intervention was sometimes employed heavy handedly to tidy up engagements. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_ockb8") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignDivinityRecall.tres b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignDivinityRecall.tres index 865dbb5d..5ce87520 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignDivinityRecall.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignDivinityRecall.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://bptg6eybj5dxk"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://bptg6eybj5dxk"] [ext_resource type="Texture2D" uid="uid://c0vl8e3f3ygd8" path="res://src/items/effect/textures/Divinity Recall.png" id="1_5k3il"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_vbkuy"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_vbkuy"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_vbkuy") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_vbkuy") UsableItemTag = 4 @@ -13,7 +44,6 @@ StatDescription = "Teleports all entities on the floor to the currently occupied FlavorText = "A somewhat hastily designed edict that compels all beings with divine trace to converge upon the location of the reciter. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_5k3il") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignGospelOfDimension.tres b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignGospelOfDimension.tres index 5e3019d5..8c2a142f 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignGospelOfDimension.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignGospelOfDimension.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://drogp1a0h4pwb"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://drogp1a0h4pwb"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_obx74"] [ext_resource type="Texture2D" uid="uid://cotx23ubs88di" path="res://src/items/effect/textures/Gospel of Dimension.png" id="1_wuiy1"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_obx74"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_obx74") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_obx74") UsableItemTag = 20 @@ -13,7 +44,6 @@ StatDescription = "Warps the user to the current floor's exit, provided it has b FlavorText = "Impatience is an odd trait to find in beings that persist eternally... but naturally this passage is a welcome boon for those who do not. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_wuiy1") +RarityTag = 1 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignGospelOfPaths.tres b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignGospelOfPaths.tres index 7841b7a9..3f8fa557 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignGospelOfPaths.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignGospelOfPaths.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://cm6g24fepdfj6"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://cm6g24fepdfj6"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_5lyv2"] [ext_resource type="Texture2D" uid="uid://btagjuigi5p2a" path="res://src/items/effect/textures/GospelofPaths.png" id="1_w15dq"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_5lyv2"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_5lyv2") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_5lyv2") UsableItemTag = 19 @@ -13,7 +44,6 @@ StatDescription = "Warps the user to a random location on the current floor." FlavorText = "Any method of randomization was quickly, and readily, adopted in the Tower as a way to stave off boredom. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_w15dq") +RarityTag = 1 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignImprecation.tres b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignImprecation.tres index dc1b501e..07b0171f 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignImprecation.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignImprecation.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://dw26l3f3hd2sq"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://dw26l3f3hd2sq"] [ext_resource type="Texture2D" uid="uid://d3almqf7u20te" path="res://src/items/effect/textures/cursebook.png" id="1_daviq"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_xpp7p"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_xpp7p"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_xpp7p") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_xpp7p") UsableItemTag = 9 @@ -11,7 +42,6 @@ InitialCount = 0 Name = "Scripture Sign: Imprecation" StatDescription = "Deals moderate Curse damage to all entities in the current room." FlavorText = "Virulent wishes should be handled with careful consideration of the eons of consequences they may carry." -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -28,4 +58,7 @@ ThrowSpeed = 12.0 ThrowDamage = 40 ItemTag = 0 Texture = ExtResource("1_daviq") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignKyuuketsuki.tres b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignKyuuketsuki.tres index d3a8c844..5d0420b5 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignKyuuketsuki.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignKyuuketsuki.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://bldgbv38yplgk"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://bldgbv38yplgk"] [ext_resource type="Texture2D" uid="uid://dg6rwrbmo67yp" path="res://src/items/effect/textures/Kyuuketsuki.png" id="1_7bs30"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_io8q8"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_io8q8"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_io8q8") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_io8q8") UsableItemTag = 7 @@ -14,7 +45,6 @@ FlavorText = "An unsavory method of survival originally employed by demons. Eventually reverse engineered by those who sought any edge. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -31,4 +61,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_7bs30") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignSineMorphization.tres b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignSineMorphization.tres index 5bbc117d..f843f045 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignSineMorphization.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/ScriptureSignSineMorphization.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://cwh5w1yabwrxf"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://cwh5w1yabwrxf"] [ext_resource type="Texture2D" uid="uid://bm0a0nq7hjf2d" path="res://src/items/effect/textures/SineMorph.png" id="1_db06y"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="1_ksb1c"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_udl8a"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_udl8a") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_ksb1c") @@ -13,7 +44,6 @@ StatDescription = "Transforms all entities in the current room into restorative FlavorText = "A spell that completely alters the configuration of matter of nearby threats. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_db06y") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignAblution.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignAblution.tres index 63e30982..0677c625 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignAblution.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignAblution.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://clmirf817k2ah"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://clmirf817k2ah"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_7dbb6"] [ext_resource type="Texture2D" uid="uid://bb00crcey71vj" path="res://src/items/effect/textures/SpellSignAblution.png" id="1_qlv6h"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_7dbb6"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_7dbb6") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_7dbb6") UsableItemTag = 17 @@ -13,7 +44,6 @@ StatDescription = "Lowers user or target to 1 HP." FlavorText = "A spell that induces extreme vulnerability and a return to a purer state. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 0 ItemTag = 0 Texture = ExtResource("1_qlv6h") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignAnamnesis.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignAnamnesis.tres index 810eb29f..9a1f75b3 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignAnamnesis.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignAnamnesis.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://cqx03lrwx4jqv"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://cqx03lrwx4jqv"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_n24ed"] [ext_resource type="Texture2D" uid="uid://cqhetfwhinpvn" path="res://src/items/effect/textures/SpellSignAmnesis.png" id="1_on75f"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_n24ed"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_n24ed") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_n24ed") UsableItemTag = 33 @@ -13,7 +44,6 @@ StatDescription = "Randomly identifies one held unidentified item." FlavorText = "A spell that traverses the metaphysical tree of genetic memory in search of answers. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 0 ItemTag = 0 Texture = ExtResource("1_on75f") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignCellDegradation.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignCellDegradation.tres index 7a94e03c..9b7745b8 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignCellDegradation.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignCellDegradation.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://c2r8ds2ejywwq"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://c2r8ds2ejywwq"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_7c6oa"] [ext_resource type="Texture2D" uid="uid://cunxl6swsnyc6" path="res://src/items/effect/textures/SpellSignCellDegradation.png" id="1_y8dsb"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_7c6oa"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_7c6oa") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_7c6oa") UsableItemTag = 27 @@ -13,7 +44,6 @@ StatDescription = "Lowers all stats." FlavorText = "A spell for breaking down one's enemies on a cellular level. " -SpawnRate = 0.4 BonusAttack = 1 BonusDefense = 1 BonusLuck = 5 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_y8dsb") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignClothResolution.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignClothResolution.tres index a3b9487c..cb793cc7 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignClothResolution.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignClothResolution.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://lx7xkoj6w8gr"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://lx7xkoj6w8gr"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_o41ik"] [ext_resource type="Texture2D" uid="uid://12djyo3qt4xv" path="res://src/items/effect/textures/SpellSignCloth Resolution.PNG" id="1_s58d3"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_o41ik"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_o41ik") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_o41ik") UsableItemTag = 11 @@ -13,7 +44,6 @@ StatDescription = "Raises the effectiveness of currently equipped armor." FlavorText = "A spell for strengthening armor. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_s58d3") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignCosmos.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignCosmos.tres index 5bdc9228..a1c6c020 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignCosmos.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignCosmos.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://bg2fsie2g3j6q"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://bg2fsie2g3j6q"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_ae8bx"] [ext_resource type="Texture2D" uid="uid://dqlxaiu5exa0q" path="res://src/items/effect/textures/SpellSignCosmos.PNG" id="1_dn5pk"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_n1557"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_ae8bx") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_n1557") UsableItemTag = 13 @@ -13,7 +44,6 @@ StatDescription = "Increases the users level." FlavorText = "A summoning spell that draws energy from the harmony of the solar system in order to bolster one's soul. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_dn5pk") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignCovalentDestruction.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignCovalentDestruction.tres index fc8272ac..cfbde2d9 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignCovalentDestruction.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignCovalentDestruction.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://cc8p7hlglgau4"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://cc8p7hlglgau4"] [ext_resource type="Texture2D" uid="uid://8ae382qcjpcg" path="res://src/items/effect/textures/SpellSignCovalentDestruction.png" id="1_u0306"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_wpl3u"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_wpl3u"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_wpl3u") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_wpl3u") UsableItemTag = 24 @@ -13,7 +44,6 @@ StatDescription = "Lowers DEF of user or target." FlavorText = "A spell for weakening molecular structures. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 1 BonusLuck = 0 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_u0306") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignDullness.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignDullness.tres index ff32f08f..538c2abd 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignDullness.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignDullness.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://dhsdqjlc5lt84"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://dhsdqjlc5lt84"] [ext_resource type="Texture2D" uid="uid://cwksvcn7ggqag" path="res://src/items/effect/textures/SpellSignDullness.PNG" id="1_wdtfi"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_y4mfr"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_y4mfr"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_y4mfr") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_y4mfr") UsableItemTag = 26 @@ -13,7 +44,6 @@ StatDescription = "Lowers ATK." FlavorText = "A spell for lessening threat. " -SpawnRate = 0.4 BonusAttack = 1 BonusDefense = 0 BonusLuck = 0 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_wdtfi") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignEntropicSeal.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignEntropicSeal.tres index 82494044..1e080a34 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignEntropicSeal.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignEntropicSeal.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://c6ecr2cquav3"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://c6ecr2cquav3"] [ext_resource type="Texture2D" uid="uid://prsafwfaxnda" path="res://src/items/effect/textures/SpellSignEntropic Seal.PNG" id="1_i4o7a"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_pixk1"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_pixk1"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_pixk1") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_pixk1") UsableItemTag = 15 @@ -13,7 +44,6 @@ StatDescription = "Manifests the effect of a random item found within the tower. FlavorText = "A favorite of the bored and an annoyance to the rigid. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_i4o7a") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignFerrousResolution.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignFerrousResolution.tres index 43b30fba..202216c3 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignFerrousResolution.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignFerrousResolution.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://cx8kpmyhl5vkj"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://cx8kpmyhl5vkj"] [ext_resource type="Texture2D" uid="uid://brttxfgr3dstf" path="res://src/items/effect/textures/SpellSignFerrous Resolution.PNG" id="1_ail65"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_cq73r"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="1_uojwo"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_cq73r") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_uojwo") UsableItemTag = 10 @@ -13,7 +44,6 @@ StatDescription = "Raises the power of currently equipped weapon." FlavorText = "A spell for strengthening armaments. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_ail65") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignFortune.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignFortune.tres index 8f9702e5..50d023f7 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignFortune.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignFortune.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://cofh755qjlkn0"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://cofh755qjlkn0"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_cov8h"] [ext_resource type="Texture2D" uid="uid://dunse3l183ahu" path="res://src/items/effect/textures/SpellSignFortune.png" id="1_y1nwh"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_cov8h"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_cov8h") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_cov8h") UsableItemTag = 32 @@ -14,7 +45,6 @@ FlavorText = "An acquisition spell favored by all. Be sure to utilize the rewards it grants you. They may save your life. " -SpawnRate = 0.2 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -29,6 +59,9 @@ HolyResistance = 0 CurseResistance = 0 ThrowSpeed = 12.0 ThrowDamage = 5 -ItemTag = 22 +ItemTag = 0 Texture = ExtResource("1_y1nwh") +RarityTag = 2 +SpawnRate = 0.2 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignGrandLibrary.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignGrandLibrary.tres index 3bea07aa..381aac95 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignGrandLibrary.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignGrandLibrary.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://uh0ewkeksisf"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://uh0ewkeksisf"] [ext_resource type="Texture2D" uid="uid://b7ib7lbtsh55b" path="res://src/items/effect/textures/SpellSignGrandLIbrary.png" id="1_1rb03"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_heel1"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_heel1"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_heel1") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_heel1") UsableItemTag = 1 @@ -11,7 +42,6 @@ InitialCount = 0 Name = "Spell Sign: Grand Library" StatDescription = "Identifies all currently held items." FlavorText = "A spell that taps into a deep sea of cultural memory." -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -28,4 +58,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_1rb03") +RarityTag = 2 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignMelticalWave.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignMelticalWave.tres index 06c9c688..8f864d76 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignMelticalWave.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignMelticalWave.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://c3qkrtgmngetc"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://c3qkrtgmngetc"] [ext_resource type="Texture2D" uid="uid://ri5h1p4e10gl" path="res://src/items/effect/textures/SpellsignMeltical Wave.PNG" id="1_0fxlw"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_3fnh2"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_3fnh2"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_3fnh2") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_3fnh2") UsableItemTag = 29 @@ -12,7 +43,6 @@ Name = "Spell Sign: Meltical Wave" StatDescription = "Melts all currently equipped items." FlavorText = "A localized evocation that liquifies a travelers gear. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -29,4 +59,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_0fxlw") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignMetallicReducer.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignMetallicReducer.tres index f2ad1c1e..dae7e045 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignMetallicReducer.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignMetallicReducer.tres @@ -1,18 +1,49 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://cc5utcc7ge2xd"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://cc5utcc7ge2xd"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_dgqkk"] [ext_resource type="Texture2D" uid="uid://bamulmtkrsfrj" path="res://src/items/effect/textures/SpellSignMetallicReducer.png" id="1_j03wp"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_dgqkk"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_dgqkk") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_dgqkk") UsableItemTag = 12 ElementalDamageType = 0 +InitialCount = 0 Name = "Spell Sign: Metallic Reducer" StatDescription = "Lowers effectiveness of the currently equipped armor." FlavorText = "A spell for breaking down reignments. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -29,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_j03wp") +RarityTag = 2 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignPerspective.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignPerspective.tres index 144ae38c..9a03466f 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignPerspective.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignPerspective.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://b44v3y1okrj1s"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://b44v3y1okrj1s"] [ext_resource type="Texture2D" uid="uid://ce52y4edhktxw" path="res://src/items/effect/textures/Perspective.PNG" id="1_5wep8"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_xyepq"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_xyepq"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_xyepq") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_xyepq") UsableItemTag = 3 @@ -13,7 +44,6 @@ StatDescription = "Swaps the HP and VT of the user." FlavorText = "In the spirit of seeking a better worldview, sometimes inducing sudden shifts in circumstance can foster bouts of appreciation. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_5wep8") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignRegression.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignRegression.tres index 8fcb1a74..7e80f8fa 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignRegression.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignRegression.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://b8g6o1noqxaye"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://b8g6o1noqxaye"] [ext_resource type="Texture2D" uid="uid://ck0i7lgfby0yb" path="res://src/items/effect/textures/Regression.PNG" id="1_2migf"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_a0gmu"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_a0gmu"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_a0gmu") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_a0gmu") UsableItemTag = 14 @@ -13,7 +44,6 @@ StatDescription = "Lower's the level of the user." FlavorText = "A spell that actively regresses memories. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_2migf") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignReprieval Wave.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignReprieval Wave.tres index 79cf6b65..14aea4b2 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignReprieval Wave.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignReprieval Wave.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://di2r6s4duri7g"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://di2r6s4duri7g"] [ext_resource type="Texture2D" uid="uid://bmieet0cp08il" path="res://src/items/effect/textures/Reprieval Wave.png" id="1_jahm1"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_kd7dn"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_kd7dn"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_kd7dn") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_kd7dn") UsableItemTag = 30 @@ -13,7 +44,6 @@ StatDescription = "Restores all parameters to normal values." FlavorText = "An incantation for resetting the slate. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 0 ItemTag = 0 Texture = ExtResource("1_jahm1") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignRoadOfMisfortune.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignRoadOfMisfortune.tres index f28d3024..c4ee96d9 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignRoadOfMisfortune.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignRoadOfMisfortune.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://6v03c3k4xek2"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://6v03c3k4xek2"] [ext_resource type="Texture2D" uid="uid://ddw0tkd6bt1rx" path="res://src/items/effect/textures/SpellSignRoadOfMisfortune.PNG" id="1_dj3dx"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_ihpam"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_ihpam"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_ihpam") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_ihpam") UsableItemTag = 25 @@ -14,7 +45,6 @@ FlavorText = "A spell that alters fortune. Or, arguably changes nothing if one is a fatalist. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -31,4 +61,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_dj3dx") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignSomaticCellNuclearTransfer.tres b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignSomaticCellNuclearTransfer.tres index 79f081b7..2ffefb2b 100644 --- a/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignSomaticCellNuclearTransfer.tres +++ b/Zennysoft.Game.Ma/src/items/effect/resources/SpellSignSomaticCellNuclearTransfer.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://c2nhv3dyubv14"] +[gd_resource type="Resource" script_class="EffectItemStats" load_steps=5 format=3 uid="uid://c2nhv3dyubv14"] [ext_resource type="Texture2D" uid="uid://c51domle5mjck" path="res://src/items/effect/textures/SpellSignSomaticCellNuclearTransfer.png" id="1_peleg"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_vp6bj"] [ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_vp6bj"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_vp6bj") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_vp6bj") UsableItemTag = 28 @@ -14,7 +45,6 @@ FlavorText = "An advanced genetic duplication spell. At the instance of effect, a separate soul is born. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -31,4 +61,7 @@ ThrowSpeed = 12.0 ThrowDamage = 0 ItemTag = 0 Texture = ExtResource("1_peleg") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://b5w4iw4iqmxtn" diff --git a/Zennysoft.Game.Ma/src/items/jewels/Jewel.cs b/Zennysoft.Game.Ma/src/items/jewels/Jewel.cs index 0cade83c..bdead8a1 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/Jewel.cs +++ b/Zennysoft.Game.Ma/src/items/jewels/Jewel.cs @@ -2,6 +2,8 @@ using Chickensoft.AutoInject; using Chickensoft.Introspection; using Chickensoft.Serialization; using Godot; +using System.Collections.Generic; +using Zennysoft.Game.Abstractions; using Zennysoft.Game.Ma; using Zennysoft.Ma.Adapter; @@ -23,7 +25,7 @@ public partial class Jewel : Node3D, IAugmentItem public string FlavorText => Stats.FlavorText; - public float SpawnRate => Stats.SpawnRate; + public float BaseRarity => Stats.SpawnRate; public int ThrowDamage => Stats.ThrowDamage; @@ -38,4 +40,8 @@ public partial class Jewel : Node3D, IAugmentItem public JewelStats Stats { get; set; } = new JewelStats(); public IAugmentType Augment { get; set; } + + public RarityTag RarityTag => Stats.RarityTag; + public float SpawnRate => Stats.SpawnRate; + public IFloorSpawnTable SpawnsOn => Stats.SpawnsOn; } diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/AeolicJewel.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/AeolicJewel.tres index b006d4f5..6d46ca48 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/AeolicJewel.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/AeolicJewel.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://bxen2ertkxmwo"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://bxen2ertkxmwo"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_1at78"] [ext_resource type="Texture2D" uid="uid://cg2f2mf3bpf06" path="res://src/items/jewels/texture/Aeollic Jewel.png" id="1_8qd6t"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="2_1at78"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_1at78") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_1at78") JewelTag = 1 @@ -15,7 +46,6 @@ When attached to armor or mask; grants Resistance to Aeolic damage. FlavorText = "A jewel that swirls with verdant energy. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 5 @@ -32,4 +62,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_8qd6t") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/AnabolicJewel.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/AnabolicJewel.tres index 72703a93..76648d8d 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/AnabolicJewel.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/AnabolicJewel.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://b8f23e2kay1cr"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://b8f23e2kay1cr"] [ext_resource type="Texture2D" uid="uid://b4sgv07h0puxq" path="res://src/items/jewels/texture/Anabolic.png" id="1_6jhk1"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_6xlbl"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_so1re"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_so1re") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_6xlbl") @@ -14,7 +45,6 @@ FlavorText = "A jewel prized for it's beneficial properties. Beloved by those who neglect their physical health in day to day life. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -31,4 +61,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_6jhk1") +RarityTag = 2 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/BlackEgg.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/BlackEgg.tres index 846bc54f..cfe3f887 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/BlackEgg.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/BlackEgg.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://ciejgco24n0qo"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://ciejgco24n0qo"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_b284n"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_dxj8h"] [ext_resource type="Texture2D" uid="uid://cgkmm3jvdfss7" path="res://src/items/jewels/texture/Black Egg.png" id="1_rbr4o"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_b284n") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_dxj8h") JewelTag = 15 @@ -13,7 +44,6 @@ StatDescription = "When attached to equipment; increases ATK, DEF and LUCK." FlavorText = "A royal stone that grants a way of life aloft with power. " -SpawnRate = 0.1 BonusAttack = 3 BonusDefense = 3 BonusLuck = 15 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_rbr4o") +RarityTag = 2 +SpawnRate = 0.1 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/CatsEye.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/CatsEye.tres index eeeaf121..f8e70e1e 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/CatsEye.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/CatsEye.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://d8186oeld7up"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://d8186oeld7up"] [ext_resource type="Texture2D" uid="uid://ca4ew0ax6nn2m" path="res://src/items/jewels/texture/Cats Eye.png" id="1_a82hi"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_vnumh"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_vvfsu"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_vnumh") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_vvfsu") JewelTag = 16 @@ -14,7 +45,6 @@ FlavorText = "Many types of beings find their way to the Tower beyond just human The youngest cousin always delighted in the opportunity to share in beast-like forms as he appeared to them in aid. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 25 @@ -31,4 +61,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_a82hi") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/CinnabarStructure.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/CinnabarStructure.tres index afb8b3b1..f0b2eb73 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/CinnabarStructure.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/CinnabarStructure.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://bfmujwmg1iehy"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://bfmujwmg1iehy"] [ext_resource type="Texture2D" uid="uid://d27skll00kk6x" path="res://src/items/jewels/texture/Cinnabar Structure.png" id="1_fc5tr"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_k60ln"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_sdsuj"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_sdsuj") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_k60ln") @@ -17,7 +48,6 @@ FlavorText = "When a soul comes to it's final state of purification, much has be Those sins, virtues and characteristics all find their way to divine craftsmen as cosmic material ripe for manifestation. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -34,4 +64,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_fc5tr") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/FoolishOrb.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/FoolishOrb.tres index 8b811194..840ed504 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/FoolishOrb.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/FoolishOrb.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://cdygc6sdh0oki"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://cdygc6sdh0oki"] [ext_resource type="Texture2D" uid="uid://dfynn3kt3fce3" path="res://src/items/jewels/texture/Foolish Orb.png" id="1_ltr3k"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_pn071"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_uyi20"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_uyi20") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_pn071") @@ -14,7 +45,6 @@ StatDescription = "Lowers XP gained. FlavorText = "Most tend to agree that making your own life harder is an unwise course of action. Nevertheless, the souls of those who do just that coalesce over millennia into these nuisances. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -31,4 +61,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_ltr3k") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/GlueOrb.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/GlueOrb.tres index 4bdfe180..18a20c08 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/GlueOrb.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/GlueOrb.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://b00agx6qy6yhv"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://b00agx6qy6yhv"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_c23yr"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_mv2i3"] [ext_resource type="Texture2D" uid="uid://cfs8ehciaivqi" path="res://src/items/jewels/texture/Glue Orb.png" id="1_sww4k"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_mv2i3") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_c23yr") JewelTag = 5 @@ -15,7 +46,6 @@ FlavorText = "At first glance, seemingly an article of misfortune. Such a manifestation of character must be in mockery of those deemed clingy. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -32,4 +62,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_sww4k") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/HeirloomStone.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/HeirloomStone.tres index 43fdb2fa..f9e713d5 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/HeirloomStone.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/HeirloomStone.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://bxq5xnxfhatpi"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://bxq5xnxfhatpi"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_7gwjj"] [ext_resource type="Texture2D" uid="uid://d3lufh2g0tsn4" path="res://src/items/jewels/texture/Heirloom Stone.png" id="1_gk4x7"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_rqyjn"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_rqyjn") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_7gwjj") @@ -15,7 +46,6 @@ FlavorText = "Each of these jewels required a truly selfless soul to manifest. The Tower pierces through all posturing and delusion to reveal the truth of one's intent. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -32,4 +62,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_gk4x7") +RarityTag = 2 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/HydricJewel.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/HydricJewel.tres index e6e7b8a5..299783d5 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/HydricJewel.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/HydricJewel.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://c65jk6stksnai"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://c65jk6stksnai"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_4jyt2"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_cyti8"] [ext_resource type="Texture2D" uid="uid://bjr4p0s2cgm4j" path="res://src/items/jewels/texture/Hydric Jewel.png" id="1_fdjqp"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_4jyt2") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_cyti8") JewelTag = 7 @@ -15,7 +46,6 @@ When attached to armor or mask; grants Resistance to Hydric damage. FlavorText = "A deepy and stormy jewel, cold to the touch. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -32,4 +62,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_fdjqp") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/IgenousJewel.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/IgenousJewel.tres index 02e8e224..64a31aa2 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/IgenousJewel.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/IgenousJewel.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://duk8un4sdv0cs"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://duk8un4sdv0cs"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_clvqr"] [ext_resource type="Texture2D" uid="uid://cg012lq8a4ncq" path="res://src/items/jewels/texture/Igneous Jewel.png" id="1_knm0p"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_qh03l"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_clvqr") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_qh03l") JewelTag = 8 @@ -15,7 +46,6 @@ When attached to armor or mask; grants Resistance to Igneous damage. FlavorText = "A jewel that burns bright and reflects ambition in it's depths. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -32,4 +62,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_knm0p") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/MeditativeOrb.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/MeditativeOrb.tres index d3ccf2b3..6501049e 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/MeditativeOrb.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/MeditativeOrb.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://d2rdaghcccw0f"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://d2rdaghcccw0f"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_6e2y5"] [ext_resource type="Texture2D" uid="uid://l0m22lwgkujv" path="res://src/items/jewels/texture/Meditative Stone.png" id="1_cyim2"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_wso6y"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_wso6y") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_6e2y5") @@ -16,7 +47,6 @@ Some take to the laws of the Tower quicker than others, but one's own speed is perfectly okay. After all, eternity can wait. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -33,4 +63,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_cyim2") +RarityTag = 2 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/MercuryPrism.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/MercuryPrism.tres index b9cd0b66..089d7a92 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/MercuryPrism.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/MercuryPrism.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://djim1rdpt03ai"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://djim1rdpt03ai"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_ivvck"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_mt55f"] [ext_resource type="Texture2D" uid="uid://m84aend2srew" path="res://src/items/jewels/texture/Mercury.png" id="1_rw1fk"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_mt55f") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_ivvck") JewelTag = 10 @@ -17,7 +48,6 @@ FlavorText = "A highly toxic substance encased in a masterfully crafted prism. What sort of soul manifests such a gem? " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -34,4 +64,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_rw1fk") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/MetabolicJewel.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/MetabolicJewel.tres index f7a95134..482f4f3a 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/MetabolicJewel.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/MetabolicJewel.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://dd5stvt4g531e"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://dd5stvt4g531e"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_bq0md"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_cabnq"] [ext_resource type="Texture2D" uid="uid://c5u3o5ewr8hi6" path="res://src/items/jewels/texture/Metabolic Jewel.png" id="1_pscn1"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_bq0md") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_cabnq") JewelTag = 11 @@ -15,7 +46,6 @@ FlavorText = "A jewel that boosts one's energy capabilities. Draws ire and judgement from those who worked hard for their physical well being. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -32,4 +62,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_pscn1") +RarityTag = 2 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/MysteryJewel.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/MysteryJewel.tres index b557916a..54da2688 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/MysteryJewel.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/MysteryJewel.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://c60ej6ce8s1ox"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://c60ej6ce8s1ox"] [ext_resource type="Texture2D" uid="uid://esqaln68twiw" path="res://src/items/Icons/Unidentified Item.png" id="1_ne34t"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_nwwms"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="2_nwwms"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_nwwms") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_nwwms") JewelTag = 0 @@ -11,7 +42,6 @@ ArmorAugmentDescription = "" Name = "Unidentified Jewel" StatDescription = "" FlavorText = "" -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -28,4 +58,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 2 Texture = ExtResource("1_ne34t") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/OssifiedCortex.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/OssifiedCortex.tres index e2ef5e91..3308efe6 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/OssifiedCortex.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/OssifiedCortex.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://bdd7xh6v03xul"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://bdd7xh6v03xul"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_75k4l"] [ext_resource type="Texture2D" uid="uid://buuspiw0g1prj" path="res://src/items/jewels/texture/Ossified Cortex.png" id="1_cq6jp"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_d2g3o"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_d2g3o") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_75k4l") @@ -16,7 +47,6 @@ FlavorText = "The Tower will at times ignite obsession in certain individuals, w Much to the chagrin of her peers, Proscenium often felt a kinship with such maniacs and still on occasion grants them favor. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -33,4 +63,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_cq6jp") +RarityTag = 2 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/RejectionStone.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/RejectionStone.tres index 15ecac2b..149f0327 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/RejectionStone.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/RejectionStone.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://byufike6hontv"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://byufike6hontv"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_fkhpb"] [ext_resource type="Texture2D" uid="uid://bgdndvxd3sd5l" path="res://src/items/jewels/texture/Rejection Stone.png" id="1_rh6wh"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_w8wf2"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_w8wf2") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_fkhpb") @@ -14,7 +45,6 @@ FlavorText = "A rare stone solidified from the souls of those who cling most lov What is a second chance in the face of several billion years? " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -31,4 +61,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_rh6wh") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/TarnishedJewel.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/TarnishedJewel.tres index 6d412cf7..47609f53 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/TarnishedJewel.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/TarnishedJewel.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://blghjvef7p6fm"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://blghjvef7p6fm"] [ext_resource type="Texture2D" uid="uid://jsvi8dx12343" path="res://src/items/jewels/texture/Tarnished Jewel.png" id="1_6qtep"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="1_868vv"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_wyxyd"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_wyxyd") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_868vv") @@ -15,7 +46,6 @@ FlavorText = "A useless jewel, exhausted of its power. Confers no benefits in attachment but, nevertheless, such an act is permitted. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -32,4 +62,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_6qtep") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/jewels/resources/TelluricJewel.tres b/Zennysoft.Game.Ma/src/items/jewels/resources/TelluricJewel.tres index ce3904ee..449cd7aa 100644 --- a/Zennysoft.Game.Ma/src/items/jewels/resources/TelluricJewel.tres +++ b/Zennysoft.Game.Ma/src/items/jewels/resources/TelluricJewel.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="JewelStats" load_steps=3 format=3 uid="uid://d3fipjd8sayiw"] +[gd_resource type="Resource" script_class="JewelStats" load_steps=5 format=3 uid="uid://d3fipjd8sayiw"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_c8kww"] [ext_resource type="Texture2D" uid="uid://b6iladb8rimi3" path="res://src/items/jewels/texture/Telleric Jewel.png" id="1_yooxp"] [ext_resource type="Script" uid="uid://btikba31yb0tl" path="res://src/items/jewels/JewelStats.cs" id="2_c8kww"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_c8kww") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_c8kww") JewelTag = 14 @@ -15,7 +46,6 @@ When attached to armor or mask; grants Resistance to Telluric damage. FlavorText = "A heavy and sturdy jewel that grounds one's cognition. " -SpawnRate = 0.4 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -32,4 +62,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_yooxp") +RarityTag = 2 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://btikba31yb0tl" diff --git a/Zennysoft.Game.Ma/src/items/misc/SetItem.cs b/Zennysoft.Game.Ma/src/items/misc/SetItem.cs index 7be03ee1..0d0ac780 100644 --- a/Zennysoft.Game.Ma/src/items/misc/SetItem.cs +++ b/Zennysoft.Game.Ma/src/items/misc/SetItem.cs @@ -2,6 +2,8 @@ using Chickensoft.AutoInject; using Chickensoft.Introspection; using Chickensoft.Serialization; using Godot; +using System.Collections.Generic; +using Zennysoft.Game.Abstractions; using Zennysoft.Game.Ma; using Zennysoft.Ma.Adapter; @@ -18,7 +20,7 @@ public partial class SetItem : Node3D, IBaseInventoryItem public string FlavorText => Stats.FlavorText; - public float SpawnRate => Stats.SpawnRate; + public float BaseRarity => Stats.SpawnRate; public int ThrowDamage => Stats.ThrowDamage; @@ -36,4 +38,8 @@ public partial class SetItem : Node3D, IBaseInventoryItem [Export] [Save("inventory_stats")] public EffectItemStats Stats { get; set; } = new EffectItemStats(); + + public RarityTag RarityTag => Stats.RarityTag; + public float SpawnRate => Stats.SpawnRate; + public IFloorSpawnTable SpawnsOn => Stats.SpawnsOn; } diff --git a/Zennysoft.Game.Ma/src/items/throwable/ThrowableItem.cs b/Zennysoft.Game.Ma/src/items/throwable/ThrowableItem.cs index 7a51c6ee..f11e579f 100644 --- a/Zennysoft.Game.Ma/src/items/throwable/ThrowableItem.cs +++ b/Zennysoft.Game.Ma/src/items/throwable/ThrowableItem.cs @@ -3,6 +3,8 @@ using Chickensoft.Collections; using Chickensoft.Introspection; using Chickensoft.Serialization; using Godot; +using System.Collections.Generic; +using Zennysoft.Game.Abstractions; using Zennysoft.Game.Implementation; using Zennysoft.Ma.Adapter; @@ -33,7 +35,7 @@ public partial class ThrowableItem : Node3D, IBaseInventoryItem, IStackable public string FlavorText => Stats.FlavorText; - public float SpawnRate => Stats.SpawnRate; + public float BaseRarity => Stats.SpawnRate; public int ThrowDamage => Stats.ThrowDamage; @@ -62,4 +64,8 @@ public partial class ThrowableItem : Node3D, IBaseInventoryItem, IStackable public Texture2D GetTexture() => Stats.Texture; public void SetCount(int count) => Count.OnNext(count); + + public RarityTag RarityTag => Stats.RarityTag; + public float SpawnRate => Stats.SpawnRate; + public IFloorSpawnTable SpawnsOn => Stats.SpawnsOn; } diff --git a/Zennysoft.Game.Ma/src/items/weapons/Weapon.cs b/Zennysoft.Game.Ma/src/items/weapons/Weapon.cs index 686c0422..71f5ec96 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/Weapon.cs +++ b/Zennysoft.Game.Ma/src/items/weapons/Weapon.cs @@ -2,6 +2,7 @@ using Chickensoft.AutoInject; using Chickensoft.Introspection; using Chickensoft.Serialization; using Godot; +using Zennysoft.Game.Abstractions; using Zennysoft.Ma.Adapter; using Zennysoft.Ma.Adapter.Entity; @@ -43,7 +44,7 @@ public partial class Weapon : Node3D, IWeapon public string FlavorText => Stats.FlavorText; - public float SpawnRate => Stats.SpawnRate; + public float BaseRarity => Stats.SpawnRate; public int ThrowDamage => Stats.ThrowDamage; @@ -105,4 +106,8 @@ public partial class Weapon : Node3D, IWeapon public bool Glued { get; set; } public Texture2D GetTexture() => Stats.Texture; + + public RarityTag RarityTag => Stats.RarityTag; + public float SpawnRate => Stats.SpawnRate; + public IFloorSpawnTable SpawnsOn => Stats.SpawnsOn; } diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/Cello.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/Cello.tres index 0f9e12d7..8d5c6b64 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/Cello.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/Cello.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://cln4tbuj6lj7q"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://cln4tbuj6lj7q"] [ext_resource type="Texture2D" uid="uid://xyygesrxmvcr" path="res://src/items/weapons/textures/Cello.png" id="1_ji58v"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_ld4gv"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_ld4gv"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_ld4gv") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_ld4gv") AttackSpeed = 1.5 @@ -14,7 +45,6 @@ Name = "Cello" StatDescription = "" FlavorText = "A bouquet of sacramental daggers. Requires equal measures of skill and contempt to wield effectively." -SpawnRate = 0.4 BonusAttack = 6 BonusDefense = 0 BonusLuck = 0 @@ -31,3 +61,6 @@ ThrowSpeed = 20.0 ThrowDamage = 25 ItemTag = 0 Texture = ExtResource("1_ji58v") +RarityTag = 1 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/CruciformSword.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/CruciformSword.tres index bb925a62..5b3421ec 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/CruciformSword.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/CruciformSword.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://cw8bo8i4nffkr"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://cw8bo8i4nffkr"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_i1xfb"] [ext_resource type="Texture2D" uid="uid://bero0tm055ppq" path="res://src/items/weapons/textures/Cross Sword.png" id="1_ygt7u"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_i1xfb"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_i1xfb") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_i1xfb") AttackSpeed = 0.6 @@ -13,7 +44,6 @@ SoundEffect = 24 Name = "Cruciform Sword" StatDescription = "Holy Affinity." FlavorText = "Wielded by the heroine of a convent from the late 176th Century." -SpawnRate = 0.01 BonusAttack = 10 BonusDefense = 0 BonusLuck = 0 @@ -30,3 +60,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_ygt7u") +RarityTag = 2 +SpawnRate = 0.01 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/Dilemma.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/Dilemma.tres index bd4c7180..0026ff1a 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/Dilemma.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/Dilemma.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://ckby3a66xyfg5"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://ckby3a66xyfg5"] [ext_resource type="Texture2D" uid="uid://dhuayts4jpubt" path="res://src/items/weapons/textures/Dilemma.png" id="1_7mgs3"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_ese65"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_ese65"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_ese65") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_ese65") AttackSpeed = 1.0 @@ -16,7 +47,6 @@ FlavorText = "A cursed weapon that feasts upon the user's inner world as purchas What can one surmise about those who would mutilate their very souls in the pursuit of atonement? " -SpawnRate = 0.05 BonusAttack = 15 BonusDefense = 0 BonusLuck = 0.05 @@ -33,3 +63,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_7mgs3") +RarityTag = 1 +SpawnRate = 0.05 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/GeomanticReactor.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/GeomanticReactor.tres index 4a0937d9..3ca7b722 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/GeomanticReactor.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/GeomanticReactor.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://cymdy1nsatbnd"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://cymdy1nsatbnd"] [ext_resource type="Texture2D" uid="uid://dcd2tul824dk7" path="res://src/items/weapons/textures/georeactor.png" id="1_mqums"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_ysg84"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_ysg84"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_ysg84") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_ysg84") AttackSpeed = 1.0 @@ -17,7 +48,6 @@ Utilizes a variety of powerful geomantic casting-shells to command elemental vio As it is useless when empty, flinging it at those deserving of ire is always an option. Though, one may come to regret destroying such a rare artifact." -SpawnRate = 0.001 BonusAttack = 15 BonusDefense = 0 BonusLuck = 0 @@ -34,3 +64,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_mqums") +RarityTag = 3 +SpawnRate = 0.001 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/Grudge Blade.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/Grudge Blade.tres index 67c0ae19..84eda370 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/Grudge Blade.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/Grudge Blade.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://bo186s7co0ve6"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://bo186s7co0ve6"] [ext_resource type="Texture2D" uid="uid://bvhowkkt30cde" path="res://src/items/weapons/textures/Grudge Blade.png" id="1_adch6"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_w1xqe"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_w1xqe"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_w1xqe") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_w1xqe") AttackSpeed = 1.0 @@ -14,7 +45,6 @@ Name = "Grudge Blade" StatDescription = "Maledictio." FlavorText = "Profane blades used to terminate the sacred. A weapon remembers every life it has taken; some with regret, some with glee and, most often, others with rage." -SpawnRate = 0.2 BonusAttack = 6 BonusDefense = 0 BonusLuck = 0 @@ -31,3 +61,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_adch6") +RarityTag = 1 +SpawnRate = 0.2 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/HopesEdge.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/HopesEdge.tres index ee2c108f..ba61b79e 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/HopesEdge.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/HopesEdge.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://c5d1lx0m53d5i"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://c5d1lx0m53d5i"] [ext_resource type="Texture2D" uid="uid://b0c30bryna0nk" path="res://src/items/weapons/textures/Last Reward.png" id="1_entay"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_wkueq"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="3_34krx"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_wkueq") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("3_34krx") AttackSpeed = 1.0 @@ -15,7 +46,6 @@ StatDescription = "The lower the HP of the user, the stronger the blade becomes. FlavorText = "A sword that blossoms during moments of desperation and pain. Pragmatism ill serves to obscure one's sorrow. " -SpawnRate = 0.3 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -32,3 +62,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_entay") +RarityTag = 1 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/HuracansBlade.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/HuracansBlade.tres index f07bce80..8b7ec20b 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/HuracansBlade.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/HuracansBlade.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://b3b5yrbj2w3ra"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://b3b5yrbj2w3ra"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_lrcu0"] [ext_resource type="Texture2D" uid="uid://h8mehvflulgq" path="res://src/items/weapons/textures/Hurracans Blade.png" id="1_r3s2a"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_lrcu0"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_lrcu0") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_lrcu0") AttackSpeed = 1.0 @@ -14,7 +45,6 @@ Name = "Huracán's Blade" StatDescription = "Igneous Affinity." FlavorText = "Flame-bound armament of a forgotten deity. In truth, the igneous element was only a tertiary domain of Huracán." -SpawnRate = 0.1 BonusAttack = 8 BonusDefense = 0 BonusLuck = 0 @@ -31,3 +61,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_r3s2a") +RarityTag = 1 +SpawnRate = 0.1 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/IroncladNata.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/IroncladNata.tres index 4383cbcc..3e8523ce 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/IroncladNata.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/IroncladNata.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://gebgo2x6nr3t"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://gebgo2x6nr3t"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_gb40b"] [ext_resource type="Texture2D" uid="uid://wj7ialxiqifq" path="res://src/items/weapons/textures/ironcladnata.png" id="1_mppyb"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_gb40b"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_gb40b") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_gb40b") AttackSpeed = 1.0 @@ -13,7 +44,6 @@ SoundEffect = 24 Name = "Ironclad Nata" StatDescription = "" FlavorText = "A broad edged hatchet useful for rural excavation." -SpawnRate = 0.2 BonusAttack = 5 BonusDefense = 0 BonusLuck = 0.05 @@ -30,3 +60,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_mppyb") +RarityTag = 1 +SpawnRate = 0.2 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/Joyeuse.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/Joyeuse.tres index 47ab4f2f..b7736af4 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/Joyeuse.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/Joyeuse.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://b3t6govsnap4p"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://b3t6govsnap4p"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_fr8u4"] [ext_resource type="Texture2D" uid="uid://dfpc2ighwlxjk" path="res://src/items/weapons/textures/joyeuse.png" id="1_yuqyb"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_fr8u4"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_fr8u4") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_fr8u4") AttackSpeed = 1.0 @@ -14,7 +45,6 @@ Name = "Joyeuse" StatDescription = "Attacks twice." FlavorText = "A pointed blade found at the bottom of a sea-devil's whirlpool. A divine might guides each swing." -SpawnRate = 0.2 BonusAttack = 6 BonusDefense = 0 BonusLuck = 5 @@ -31,3 +61,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_yuqyb") +RarityTag = 3 +SpawnRate = 0.2 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/Kathari.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/Kathari.tres index 5e04acc2..299aa66e 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/Kathari.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/Kathari.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://c8bvtfcq772sv"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://c8bvtfcq772sv"] [ext_resource type="Texture2D" uid="uid://c42knjfel7mt4" path="res://src/items/weapons/textures/katar.PNG" id="1_3waom"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_b1qdl"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_3gdyl"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_b1qdl") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_3gdyl") AttackSpeed = 1.25 @@ -14,7 +45,6 @@ Name = "Kathari" StatDescription = "" FlavorText = "Common punch dagger used as a sidearm. Quick and useful in close quarters. " -SpawnRate = 0.6 BonusAttack = 1 BonusDefense = 0 BonusLuck = 0 @@ -31,3 +61,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_3waom") +RarityTag = 1 +SpawnRate = 0.6 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/Kubel.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/Kubel.tres index 4a179fc1..1e9ec3df 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/Kubel.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/Kubel.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://db075qhmlmrcu"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://db075qhmlmrcu"] [ext_resource type="Texture2D" uid="uid://c4m6m3pv8704k" path="res://src/items/weapons/textures/KUBEL.PNG" id="1_gulxx"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="1_kbje7"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_xfglq"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_xfglq") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_kbje7") @@ -15,7 +46,6 @@ StatDescription = "Raises DEF." FlavorText = "A massive weapon to protect oneself against larger foes. " -SpawnRate = 0.3 BonusAttack = 6 BonusDefense = 3 BonusLuck = 0 @@ -32,3 +62,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_gulxx") +RarityTag = 1 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/LoveJudgement.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/LoveJudgement.tres index ad8cdfc5..a43e5fc2 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/LoveJudgement.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/LoveJudgement.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://cfr100khjkloh"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://cfr100khjkloh"] [ext_resource type="Texture2D" uid="uid://cy8ne2i4out5h" path="res://src/items/weapons/textures/Love Judgement.png" id="1_1vsoi"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="1_vroib"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_yxxsk"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_yxxsk") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_vroib") @@ -13,7 +44,6 @@ SoundEffect = 24 Name = "Love Judgement" StatDescription = "" FlavorText = "A mace only wieldable by the stout of heart." -SpawnRate = 0.01 BonusAttack = 11 BonusDefense = 0 BonusLuck = 0 @@ -30,3 +60,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_1vsoi") +RarityTag = 3 +SpawnRate = 0.01 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/MothersSpear.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/MothersSpear.tres index 273562ba..45df556c 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/MothersSpear.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/MothersSpear.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://u8ed8gs5xx2h"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://u8ed8gs5xx2h"] [ext_resource type="Texture2D" uid="uid://1h0cfegvpcxu" path="res://src/items/weapons/textures/Mother's Spear.png" id="1_f06uw"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_j7txh"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_j7txh"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_j7txh") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_j7txh") AttackSpeed = 1.0 @@ -15,7 +46,6 @@ StatDescription = "Telluric Affinity." FlavorText = "\"Earth, When I am about to Die, I Lean on you. Earth, While I am Alive, I Depend on You.\" Well balanced spear that channels Telluric power." -SpawnRate = 0.3 BonusAttack = 7 BonusDefense = 0 BonusLuck = 0 @@ -32,3 +62,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_f06uw") +RarityTag = 1 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/MysteryRod.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/MysteryRod.tres index 281fceb8..6ed0e8aa 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/MysteryRod.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/MysteryRod.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://cfhwlpa0d7wb4"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://cfhwlpa0d7wb4"] [ext_resource type="Texture2D" uid="uid://esqaln68twiw" path="res://src/items/Icons/Unidentified Item.png" id="1_8fklg"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="1_iran7"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_t7k37"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_t7k37") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_iran7") @@ -13,7 +44,6 @@ SoundEffect = 23 Name = "Unidentified Armament" StatDescription = "Unidentified Armament" FlavorText = "" -SpawnRate = 0.5 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0.05 @@ -30,4 +60,7 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 2 Texture = ExtResource("1_8fklg") +RarityTag = 1 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") metadata/_custom_type_script = "uid://cc7byqeolw5y4" diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/NaddahaSword.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/NaddahaSword.tres index 27ccad44..3d683981 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/NaddahaSword.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/NaddahaSword.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://4vyouoteg86x"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://4vyouoteg86x"] [ext_resource type="Texture2D" uid="uid://b6e5rk06ifgee" path="res://src/items/weapons/textures/water sword.png" id="1_4n8qe"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_gximt"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="1_js8jr"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_gximt") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_js8jr") AttackSpeed = 1.0 @@ -14,7 +45,6 @@ Name = "Naddaha Sword" StatDescription = "Hydric Affinity." FlavorText = "A spirit blade used in aquatic executions. Those judged guilty were lured to the river with nostalgic melodies and never seen again." -SpawnRate = 0.3 BonusAttack = 7 BonusDefense = 0 BonusLuck = 0 @@ -31,3 +61,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_4n8qe") +RarityTag = 1 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/NebulaChain.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/NebulaChain.tres index 4b3816c0..4ae6abd6 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/NebulaChain.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/NebulaChain.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://6qev4q6vwue0"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://6qev4q6vwue0"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_4aje4"] [ext_resource type="Texture2D" uid="uid://cqg3r44at66fi" path="res://src/items/weapons/textures/Nebula Chain.png" id="1_17mhp"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_4aje4"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_4aje4") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_4aje4") AttackSpeed = 1.0 @@ -14,7 +45,6 @@ Name = "Nebula Chain" StatDescription = "Ignores the realities of entities." FlavorText = "Chain whip that strikes through space and dimension. " -SpawnRate = 0.01 BonusAttack = 12 BonusDefense = 0 BonusLuck = 0 @@ -31,3 +61,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_17mhp") +RarityTag = 3 +SpawnRate = 0.01 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/Palm of Heaven.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/Palm of Heaven.tres index 44aa0b9f..17d764d6 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/Palm of Heaven.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/Palm of Heaven.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://ckj1m4iv4m02r"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://ckj1m4iv4m02r"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_eh5k4"] [ext_resource type="Texture2D" uid="uid://cp7g8r7qw01sv" path="res://src/items/weapons/textures/PALM OF HEAVEN ICON.png" id="1_p5744"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="1_pwwg7"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_eh5k4") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("1_pwwg7") AttackSpeed = 1.0 @@ -14,7 +45,6 @@ Name = "Palm of Heaven" StatDescription = "Posesses all Affinities." FlavorText = "A swift divine strike favored by the enlightened. Coalesces a quintet of elemental matter in deadly harmony." -SpawnRate = 0.01 BonusAttack = 5 BonusDefense = 0 BonusLuck = 0 @@ -31,3 +61,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_p5744") +RarityTag = 2 +SpawnRate = 0.01 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/Persuader.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/Persuader.tres index 4205ee7f..827c6fb8 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/Persuader.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/Persuader.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://ct3n45l8ktl4w"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://ct3n45l8ktl4w"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_jtddk"] [ext_resource type="Texture2D" uid="uid://c748qtvhexgfy" path="res://src/items/weapons/textures/Persuader.png" id="1_tjgtg"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_jtddk"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_jtddk") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_jtddk") AttackSpeed = 1.0 @@ -13,7 +44,6 @@ SoundEffect = 23 Name = "Persuader" StatDescription = "" FlavorText = "A traveler's tool and path of extreme violence." -SpawnRate = 0.001 BonusAttack = 0 BonusDefense = 0 BonusLuck = 0 @@ -30,3 +60,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_tjgtg") +RarityTag = 3 +SpawnRate = 0.001 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/PlasmaSword.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/PlasmaSword.tres index 735bd439..db5b558c 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/PlasmaSword.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/PlasmaSword.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://dm1eyabepr2e3"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://dm1eyabepr2e3"] [ext_resource type="Texture2D" uid="uid://eme86ts0dn4h" path="res://src/items/weapons/textures/plasma sword.png" id="1_pjhkt"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_rgna4"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_rgna4"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_rgna4") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_rgna4") AttackSpeed = 1.0 @@ -15,7 +46,6 @@ StatDescription = "Occasionally disintegrates whatever it strikes." FlavorText = "Rare protorelic found within the tower. " -SpawnRate = 0.005 BonusAttack = 15 BonusDefense = 0 BonusLuck = 10 @@ -32,3 +62,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_pjhkt") +RarityTag = 3 +SpawnRate = 0.005 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/Rondo.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/Rondo.tres index b9f3d246..2687b7fc 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/Rondo.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/Rondo.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://d1xrvt7rhl336"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://d1xrvt7rhl336"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_0caxp"] [ext_resource type="Texture2D" uid="uid://c15v5hlgdnrjx" path="res://src/items/weapons/textures/Rondo.png" id="1_pi816"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_0caxp"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_0caxp") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_0caxp") AttackSpeed = 2.0 @@ -16,7 +47,6 @@ FlavorText = "A blade outside time and beyond reproach. It's companion blade was surrendered long ago, amidst the shedding of tears. " -SpawnRate = 0.1 BonusAttack = 9 BonusDefense = 0 BonusLuck = 0.05 @@ -33,3 +63,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_pi816") +RarityTag = 3 +SpawnRate = 0.1 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/RustedBlade.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/RustedBlade.tres index 2f634246..da9f87bd 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/RustedBlade.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/RustedBlade.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://bdjji8ento6on"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://bdjji8ento6on"] [ext_resource type="Texture2D" uid="uid://buyggvlhb0wjk" path="res://src/items/weapons/textures/Rusted Sword.png" id="1_e3883"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_nr6vs"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="3_2ykeu"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_nr6vs") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("3_2ykeu") AttackSpeed = 1.0 @@ -16,7 +47,6 @@ FlavorText = "An ancient blade, tired and defiant towards erasure. Molecule by molecule, overtaken by glacial change. " -SpawnRate = 0.6 BonusAttack = 1 BonusDefense = 0 BonusLuck = 0.05 @@ -33,3 +63,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_e3883") +RarityTag = 1 +SpawnRate = 0.6 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/SealedSword.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/SealedSword.tres index 29cd49f2..cb10c4bf 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/SealedSword.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/SealedSword.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://b7xr0l4a8g1gk"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://b7xr0l4a8g1gk"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_3qij2"] [ext_resource type="Texture2D" uid="uid://giuk1ehqfw0e" path="res://src/items/weapons/textures/Sealed.png" id="1_ah75f"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_3qij2"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_3qij2") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_3qij2") AttackSpeed = 1.0 @@ -15,7 +46,6 @@ StatDescription = "Will break upon ascending to the next floor." FlavorText = "A powerful brane-armament entangled with the current temporal floating point layer of the tower. " -SpawnRate = 0.4 BonusAttack = 9 BonusDefense = 0 BonusLuck = 0.05 @@ -32,3 +62,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 1 Texture = ExtResource("1_ah75f") +RarityTag = 0 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/ShiningHalberd.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/ShiningHalberd.tres index 44ecfad6..4f93d0ef 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/ShiningHalberd.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/ShiningHalberd.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://bj3w2xkxjcbla"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://bj3w2xkxjcbla"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_ps45i"] [ext_resource type="Texture2D" uid="uid://b7esvsn4pg4np" path="res://src/items/weapons/textures/Halberd.png" id="1_tmqnw"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_vrork"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_ps45i") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_vrork") AttackSpeed = 0.75 @@ -16,7 +47,6 @@ FlavorText = "Ceremonial halberd wielded by the armed retinue of diplomatic envo Many were sent, and many perished. " -SpawnRate = 0.4 BonusAttack = 15 BonusDefense = 0 BonusLuck = 0 @@ -33,3 +63,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_tmqnw") +RarityTag = 1 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/Swan Sword Odette.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/Swan Sword Odette.tres index 4bccdd11..d75eb645 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/Swan Sword Odette.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/Swan Sword Odette.tres @@ -1,7 +1,38 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://bpdbuf0k0exb5"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://bpdbuf0k0exb5"] [ext_resource type="Texture2D" uid="uid://drm3el0vy0mpw" path="res://src/items/weapons/textures/Odette.png" id="1_4pwhp"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="1_cik6n"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_n2quq"] + +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_n2quq") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false [resource] script = ExtResource("1_cik6n") @@ -16,7 +47,6 @@ FlavorText = "The blade of a thousand faced performer; a vessel said to be able Naturally, such oracles of the arts were favored by the guardian of the Tower. " -SpawnRate = 0.001 BonusAttack = 9 BonusDefense = 0 BonusLuck = 20 @@ -33,3 +63,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_4pwhp") +RarityTag = 3 +SpawnRate = 0.001 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/Talwar.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/Talwar.tres index ad85fdd2..00808e18 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/Talwar.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/Talwar.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://bs01dnjkcmi7a"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://bs01dnjkcmi7a"] [ext_resource type="Texture2D" uid="uid://cn4pa0i0kfs8d" path="res://src/items/weapons/textures/talwar.PNG" id="1_8a832"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_ytv4p"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_a7ln4"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_ytv4p") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_a7ln4") AttackSpeed = 1.0 @@ -14,7 +45,6 @@ Name = "Talwar" StatDescription = "" FlavorText = "A footsoldier's standard curved sabre. Thousands made their way into the tower in their era, only to inevitably meet a state of ever interrupted rest. Forced into service time and time again ever after." -SpawnRate = 0.6 BonusAttack = 3 BonusDefense = 0 BonusLuck = 0.05 @@ -31,3 +61,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_8a832") +RarityTag = 1 +SpawnRate = 0.6 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/Tepotztli.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/Tepotztli.tres index e2b67564..220cb79e 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/Tepotztli.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/Tepotztli.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://dat5qnn7lm7g1"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://dat5qnn7lm7g1"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_4j7hp"] [ext_resource type="Texture2D" uid="uid://iuub761qvieb" path="res://src/items/weapons/textures/Tepotztli.png" id="1_mbj8p"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_4j7hp"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_4j7hp") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_4j7hp") AttackSpeed = 1.25 @@ -15,7 +46,6 @@ StatDescription = "" FlavorText = "A simple hand axe that has stood the test of time. More effective than usual when thrown." -SpawnRate = 0.5 BonusAttack = 2 BonusDefense = 0 BonusLuck = 0 @@ -32,3 +62,6 @@ ThrowSpeed = 12.0 ThrowDamage = 15 ItemTag = 0 Texture = ExtResource("1_mbj8p") +RarityTag = 1 +SpawnRate = 0.5 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/Xiphos.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/Xiphos.tres index fa3d6ef8..63950268 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/Xiphos.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/Xiphos.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://dj6i0em2a3hj8"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://dj6i0em2a3hj8"] [ext_resource type="Texture2D" uid="uid://l1ufjiwv75tp" path="res://src/items/weapons/textures/Xiphos.png" id="1_2qdus"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_t3u88"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_t3u88"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_t3u88") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_t3u88") AttackSpeed = 1.0 @@ -14,7 +45,6 @@ Name = "Xiphos" StatDescription = "" FlavorText = "A trustworthy blade and product of the advanced metallurgy of its age. Warriors of the past marched into the deserts armed solely with this sturdy blade." -SpawnRate = 0.4 BonusAttack = 4 BonusDefense = 0 BonusLuck = 0.05 @@ -31,3 +61,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_2qdus") +RarityTag = 1 +SpawnRate = 0.4 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/items/weapons/resources/YansaBlade.tres b/Zennysoft.Game.Ma/src/items/weapons/resources/YansaBlade.tres index 2d5814cb..0de36d25 100644 --- a/Zennysoft.Game.Ma/src/items/weapons/resources/YansaBlade.tres +++ b/Zennysoft.Game.Ma/src/items/weapons/resources/YansaBlade.tres @@ -1,8 +1,39 @@ -[gd_resource type="Resource" script_class="WeaponStats" load_steps=3 format=3 uid="uid://ct656nt1xd6ox"] +[gd_resource type="Resource" script_class="WeaponStats" load_steps=5 format=3 uid="uid://ct656nt1xd6ox"] +[ext_resource type="Script" uid="uid://c4hhsqjy3qknn" path="res://src/map/FloorSpawnTable.cs" id="1_evbrd"] [ext_resource type="Texture2D" uid="uid://cbvu347qmno31" path="res://src/items/weapons/textures/Yansa Blade (2).png" id="1_lrbyk"] [ext_resource type="Script" uid="uid://cc7byqeolw5y4" path="res://src/items/weapons/WeaponStats.cs" id="2_evbrd"] +[sub_resource type="Resource" id="Resource_8i8u4"] +script = ExtResource("1_evbrd") +Altar = true +Floor01 = true +Floor02 = true +Floor03 = true +Floor04 = true +Floor05 = true +Floor06 = true +Floor07 = true +Floor09 = true +Floor10 = true +Floor11 = true +Floor12 = true +Floor13 = true +Floor14 = true +Floor15 = true +BossFloorA = false +BossFloorB = false +River = false +Server = false +Platform = false +Grassland = false +Cellular = false +GoddessOfGuidance = false +TrueGoddessOfGuidance = false +FinalFloor = false +BadEnd = false +HeartOfAllThings = false + [resource] script = ExtResource("2_evbrd") AttackSpeed = 1.0 @@ -14,7 +45,6 @@ Name = "Yansã Blade" StatDescription = "Aeolic Affinity." FlavorText = "A storm weaving weapon of love and anger. The wrathful blade persists in solidified eternity, yet even mere memories of Yansã's countless welcoming feasts struggle to persist. " -SpawnRate = 0.3 BonusAttack = 7 BonusDefense = 0 BonusLuck = 0.05 @@ -31,3 +61,6 @@ ThrowSpeed = 12.0 ThrowDamage = 5 ItemTag = 0 Texture = ExtResource("1_lrbyk") +RarityTag = 1 +SpawnRate = 0.3 +SpawnsOn = SubResource("Resource_8i8u4") diff --git a/Zennysoft.Game.Ma/src/map/FloorScenePathConverter.cs b/Zennysoft.Game.Ma/src/map/FloorScenePathConverter.cs index d2ffe55a..d2abe10a 100644 --- a/Zennysoft.Game.Ma/src/map/FloorScenePathConverter.cs +++ b/Zennysoft.Game.Ma/src/map/FloorScenePathConverter.cs @@ -2,6 +2,7 @@ using Godot; using Godot.Collections; using System; using System.Linq; +using Zennysoft.Ma.Adapter; namespace Zennysoft.Game.Ma; diff --git a/Zennysoft.Game.Ma/src/map/FloorSpawnTable.cs b/Zennysoft.Game.Ma/src/map/FloorSpawnTable.cs new file mode 100644 index 00000000..c7db3052 --- /dev/null +++ b/Zennysoft.Game.Ma/src/map/FloorSpawnTable.cs @@ -0,0 +1,98 @@ +using Godot; +using Zennysoft.Game.Abstractions; + +namespace Zennysoft.Ma.Adapter; + +[GlobalClass] +public partial class FloorSpawnTable : Resource, IFloorSpawnTable +{ + [Export] + public bool Altar { get; set; } = true; + [Export] + public bool Floor01 { get; set; } = true; + [Export] + public bool Floor02 { get; set; } = true; + [Export] + public bool Floor03 { get; set; } = true; + [Export] + public bool Floor04 { get; set; } = true; + [Export] + public bool Floor05 { get; set; } = true; + [Export] + public bool Floor06 { get; set; } = true; + [Export] + public bool Floor07 { get; set; } = true; + [Export] + public bool Floor09 { get; set; } = true; + [Export] + public bool Floor10 { get; set; } = true; + [Export] + public bool Floor11 { get; set; } = true; + [Export] + public bool Floor12 { get; set; } = true; + [Export] + public bool Floor13 { get; set; } = true; + [Export] + public bool Floor14 { get; set; } = true; + [Export] + public bool Floor15 { get; set; } = true; + [Export] + public bool BossFloorA { get; set; } + [Export] + public bool BossFloorB { get; set; } + [Export] + public bool River { get; set; } + [Export] + public bool Server { get; set; } + [Export] + public bool Platform { get; set; } + [Export] + public bool Grassland { get; set; } + [Export] + public bool Cellular { get; set; } + [Export] + public bool GoddessOfGuidance { get; set; } + [Export] + public bool TrueGoddessOfGuidance { get; set; } + [Export] + public bool FinalFloor { get; set; } + [Export] + public bool BadEnd { get; set; } + [Export] + public bool HeartOfAllThings { get; set; } + + public bool SpawnsOnFloor(FloorType floorType) + { + return floorType switch + { + FloorType.Altar => Altar, + FloorType.Floor01 => Floor01, + FloorType.Floor02 => Floor02, + FloorType.Floor03 => Floor03, + FloorType.Floor04 => Floor04, + FloorType.Floor05 => Floor05, + FloorType.Floor06 => Floor06, + FloorType.Floor07 => Floor07, + FloorType.Floor09 => Floor09, + FloorType.Floor10 => Floor10, + FloorType.Floor11 => Floor11, + FloorType.Floor12 => Floor12, + FloorType.Floor13 => Floor13, + FloorType.Floor14 => Floor14, + FloorType.Floor15 => Floor15, + FloorType.BossFloorA => BossFloorA, + FloorType.BossFloorB => BossFloorB, + FloorType.River => River, + FloorType.Server => Server, + FloorType.Grassland => Grassland, + FloorType.Platform => Platform, + FloorType.Cellular => Cellular, + FloorType.GoddessOfGuidance => GoddessOfGuidance, + FloorType.TrueGoddessOfGuidance => TrueGoddessOfGuidance, + FloorType.FinalFloor => FinalFloor, + FloorType.BadEnd => BadEnd, + FloorType.HeartOfAllThings => HeartOfAllThings, + _ => false, + }; + } +} \ No newline at end of file diff --git a/Zennysoft.Game.Ma/src/map/FloorSpawnTable.cs.uid b/Zennysoft.Game.Ma/src/map/FloorSpawnTable.cs.uid new file mode 100644 index 00000000..678c3173 --- /dev/null +++ b/Zennysoft.Game.Ma/src/map/FloorSpawnTable.cs.uid @@ -0,0 +1 @@ +uid://c4hhsqjy3qknn diff --git a/Zennysoft.Game.Ma/src/map/Map.cs b/Zennysoft.Game.Ma/src/map/Map.cs index 58c88ead..843ae6fc 100644 --- a/Zennysoft.Game.Ma/src/map/Map.cs +++ b/Zennysoft.Game.Ma/src/map/Map.cs @@ -131,6 +131,7 @@ public partial class Map : Node3D, IMap else Game.ShowMinimap(true); SpawnEnemies(); + SpawnItems(); CurrentFloor.FloorIsLoaded = true; FloorLoaded?.Invoke(); } @@ -172,4 +173,11 @@ public partial class Map : Node3D, IMap foreach (var room in monsterRooms) room.SpawnEnemies(CurrentSelectedFloor.Value.EnemySpawnTable); } + + private void SpawnItems() + { + var monsterRooms = CurrentFloor.Rooms.OfType(); + foreach (var room in monsterRooms) + room.SpawnItems(CurrentSelectedFloor.Value.FloorType); + } } \ No newline at end of file diff --git a/Zennysoft.Game.Ma/src/map/SpecialFloorNode.cs b/Zennysoft.Game.Ma/src/map/SpecialFloorNode.cs deleted file mode 100644 index 7427c7b0..00000000 --- a/Zennysoft.Game.Ma/src/map/SpecialFloorNode.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Godot; - -namespace Zennysoft.Game.Ma; - -public partial class SpecialFloorNode : FloorNode -{ - [Export] - public SpecialFloorType FloorName { get; set; } -} \ No newline at end of file diff --git a/Zennysoft.Game.Ma/src/map/SpecialFloorNode.cs.uid b/Zennysoft.Game.Ma/src/map/SpecialFloorNode.cs.uid deleted file mode 100644 index 17067f63..00000000 --- a/Zennysoft.Game.Ma/src/map/SpecialFloorNode.cs.uid +++ /dev/null @@ -1 +0,0 @@ -uid://dpj4qg0ip6yui diff --git a/Zennysoft.Game.Ma/src/map/SpecialFloorType.cs b/Zennysoft.Game.Ma/src/map/SpecialFloorType.cs deleted file mode 100644 index 8ea05bb4..00000000 --- a/Zennysoft.Game.Ma/src/map/SpecialFloorType.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace Zennysoft.Game.Ma; - -public enum SpecialFloorType -{ - Overworld, - Altar, - BossFloorA, - BossFloorB, - GoddessOfGuidanceFloor, - TrueGoddessOfGuidanceFloor, - FinalFloor, - Server, - Cellular, - River, - Grassy, - Space -} diff --git a/Zennysoft.Game.Ma/src/map/dungeon/code/Altar.cs b/Zennysoft.Game.Ma/src/map/dungeon/code/Altar.cs index 4b767708..7ae184c6 100644 --- a/Zennysoft.Game.Ma/src/map/dungeon/code/Altar.cs +++ b/Zennysoft.Game.Ma/src/map/dungeon/code/Altar.cs @@ -27,53 +27,54 @@ public partial class Altar : SpecialFloor public void OnResolved() { - Show(); - Exit.AreaEntered += Exit_AreaEntered; - NoExitArea.AreaEntered += NoExitArea_AreaEntered; - FloorIsLoaded = true; - SpawnItems(); + Show(); + Exit.AreaEntered += Exit_AreaEntered; + NoExitArea.AreaEntered += NoExitArea_AreaEntered; + FloorIsLoaded = true; + SpawnItems(); } private void SpawnItems() { - if (ItemSpawnPoints == null) - return; + if (ItemSpawnPoints == null) + return; - var itemSpawnPoints = ItemSpawnPoints.GetChildren(); - var rng = new RandomNumberGenerator(); - rng.Randomize(); - var numberOfItemsToSpawn = rng.RandiRange(2, itemSpawnPoints.Count); - itemSpawnPoints.Shuffle(); - var database = ItemDatabase.Instance; - foreach (var spawnPoint in itemSpawnPoints.Cast()) - { - if (numberOfItemsToSpawn <= 0) - break; - numberOfItemsToSpawn--; + var itemSpawnPoints = ItemSpawnPoints.GetChildren(); + var rng = new RandomNumberGenerator(); + rng.Randomize(); + var numberOfItemsToSpawn = rng.RandiRange(2, itemSpawnPoints.Count); + itemSpawnPoints.Shuffle(); + var database = ItemDatabase.Instance; + var spawnableItems = database.Items.Where(x => (x.SpawnsOn as FloorSpawnTable).SpawnsOnFloor(FloorType.Altar)).ToArray(); + foreach (var spawnPoint in itemSpawnPoints.Cast()) + { + if (numberOfItemsToSpawn <= 0) + break; + numberOfItemsToSpawn--; - var selectedItem = database.PickBasicItem() as Node3D; - var duplicated = selectedItem.Duplicate((int)DuplicateFlags.UseInstantiation) as Node3D; - AddChild(duplicated); - duplicated.Position = new Vector3(spawnPoint.Position.X, 0, spawnPoint.Position.Z); - } + var selectedItem = database.PickItemFromList(spawnableItems) as Node3D; + var duplicated = selectedItem.Duplicate((int)DuplicateFlags.UseInstantiation) as Node3D; + AddChild(duplicated); + duplicated.Position = new Vector3(spawnPoint.Position.X, 0, spawnPoint.Position.Z); + } } private void NoExitArea_AreaEntered(Area3D area) { - DialogueController.ShowDialogue(Dialogue, "no_exit"); + DialogueController.ShowDialogue(Dialogue, "no_exit"); } private void Exit_AreaEntered(Area3D area) { - if (area.GetOwner() is IPlayer) - ExitReached(); + if (area.GetOwner() is IPlayer) + ExitReached(); } public void ExitReached() => Game.FloorExitReached(); public void OnExitTree() { - Exit.AreaEntered -= Exit_AreaEntered; - NoExitArea.AreaEntered -= NoExitArea_AreaEntered; + Exit.AreaEntered -= Exit_AreaEntered; + NoExitArea.AreaEntered -= NoExitArea_AreaEntered; } } diff --git a/Zennysoft.Game.Ma/src/map/dungeon/code/MonsterRoom.cs b/Zennysoft.Game.Ma/src/map/dungeon/code/MonsterRoom.cs index 5b85027c..127882cd 100644 --- a/Zennysoft.Game.Ma/src/map/dungeon/code/MonsterRoom.cs +++ b/Zennysoft.Game.Ma/src/map/dungeon/code/MonsterRoom.cs @@ -3,6 +3,7 @@ using Chickensoft.Introspection; using Godot; using Godot.Collections; using System.Linq; +using Zennysoft.Ma.Adapter; namespace Zennysoft.Game.Ma; @@ -11,17 +12,14 @@ public partial class MonsterRoom : DungeonRoom { public override void _Notification(int what) => this.Notify(what); + [Dependency] private IMap _map => this.DependOn(); + [Node] public Node3D ItemSpawnPoints { get; set; } = default!; [Node] public Node3D EnemySpawnPoints { get; set; } = default!; [Node] public Marker3D PlayerSpawn { get; set; } = default!; - public override void _Ready() - { - SpawnItems(); - } - public void SpawnEnemies(Array spawnTable) { if (spawnTable.Count == 0) @@ -47,7 +45,7 @@ public partial class MonsterRoom : DungeonRoom } } - private void SpawnItems() + public void SpawnItems(FloorType floorType) { if (ItemSpawnPoints == null) return; @@ -55,16 +53,32 @@ public partial class MonsterRoom : DungeonRoom var itemSpawnPoints = ItemSpawnPoints.GetChildren(); var rng = new RandomNumberGenerator(); rng.Randomize(); + var database = ItemDatabase.Instance; + var spawnableItems = ItemDatabase.Instance.Items.Where(x => (x.SpawnsOn as FloorSpawnTable).SpawnsOnFloor(floorType)).ToArray(); var numberOfItemsToSpawn = rng.RandiRange(1, itemSpawnPoints.Count); itemSpawnPoints.Shuffle(); - var database = ItemDatabase.Instance; - foreach (var spawnPoint in itemSpawnPoints.Cast()) + var spawnPoints = itemSpawnPoints.Cast().ToList(); + foreach (var spawnPoint in spawnPoints) { if (numberOfItemsToSpawn <= 0) break; numberOfItemsToSpawn--; - var selectedItem = database.PickItem() as Node3D; + var rarity = RarityTag.Common; + var rarityGroup = rng.Randf(); + if (rarityGroup < 0.5f) + rarity = RarityTag.Common; + else if (rarityGroup < 0.85f) + rarity = RarityTag.Uncommon; + else if (rarityGroup < 0.99f) + rarity = RarityTag.Rare; + else + rarity = RarityTag.Legendary; + + spawnableItems = [.. spawnableItems.Where(x => x.RarityTag == rarity)]; + if (spawnableItems.Count() == 0) + break; + var selectedItem = database.PickItemFromList(spawnableItems) as Node3D; var duplicated = selectedItem.Duplicate((int)DuplicateFlags.UseInstantiation) as Node3D; AddChild(duplicated); duplicated.Position = new Vector3(spawnPoint.Position.X, 0, spawnPoint.Position.Z); diff --git a/Zennysoft.Game.Ma/src/map/dungeon/floors/FloorScene.cs b/Zennysoft.Game.Ma/src/map/dungeon/floors/FloorScene.cs index d04dfad8..11bf538e 100644 --- a/Zennysoft.Game.Ma/src/map/dungeon/floors/FloorScene.cs +++ b/Zennysoft.Game.Ma/src/map/dungeon/floors/FloorScene.cs @@ -1,5 +1,6 @@ using Godot; using Godot.Collections; +using Zennysoft.Ma.Adapter; namespace Zennysoft.Game.Ma;