From d17cce5f21eb6f5e95621c92ada977bad7c42800 Mon Sep 17 00:00:00 2001 From: Niko Date: Mon, 10 Nov 2025 14:09:07 +0000 Subject: [PATCH] Add Singularity Alloy, add a (possibly final) set bonus for Singularity Set --- Content/Items/Accessories/DevInfiniteMana.cs | 2 +- .../SingularitySet/SingularityChestplate.cs | 14 +++++-- .../Armor/SingularitySet/SingularityHelmet.cs | 22 +++++++---- .../SingularitySet/SingularityLeggings.cs | 16 +++++--- Content/Items/Materials/SingularityAlloy.cs | 20 ++++++++++ Content/Items/Materials/SingularityAlloy.png | Bin 0 -> 504 bytes .../en-US_Mods.ForgottenWawiTech.hjson | 35 ++++++++++++++++-- 7 files changed, 88 insertions(+), 21 deletions(-) create mode 100644 Content/Items/Materials/SingularityAlloy.cs create mode 100644 Content/Items/Materials/SingularityAlloy.png diff --git a/Content/Items/Accessories/DevInfiniteMana.cs b/Content/Items/Accessories/DevInfiniteMana.cs index 06c7773..ed8d0b3 100644 --- a/Content/Items/Accessories/DevInfiniteMana.cs +++ b/Content/Items/Accessories/DevInfiniteMana.cs @@ -17,8 +17,8 @@ namespace ForgottenWawiTech.Content.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { - player.statMana = player.statManaMax2; player.statManaMax2 = 1000; + player.statMana = player.statManaMax2; } } } \ No newline at end of file diff --git a/Content/Items/Armor/SingularitySet/SingularityChestplate.cs b/Content/Items/Armor/SingularitySet/SingularityChestplate.cs index 3f5c754..4ae600e 100644 --- a/Content/Items/Armor/SingularitySet/SingularityChestplate.cs +++ b/Content/Items/Armor/SingularitySet/SingularityChestplate.cs @@ -3,6 +3,7 @@ using Terraria.ID; using Terraria.ModLoader; using ForgottenWawiTech.Content.Items.Materials; using ForgottenWawiTech.Content.Rarities; +using ForgottenWawiTech.Content.Tiles.CraftingStations; namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet { @@ -13,22 +14,27 @@ namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet { Item.width = 18; Item.height = 18; - Item.value = Item.sellPrice(gold: 5); + Item.value = Item.sellPrice(platinum: 500); Item.rare = ModContent.RarityType(); - Item.defense = 24; + Item.defense = 100; } public override void UpdateEquip(Player player) { - player.GetDamage(DamageClass.Generic) += 0.12f; + player.GetDamage(DamageClass.Generic) += 0.5f; player.statManaMax2 += 40; + player.endurance += 0.10f; + player.manaCost -= 0.5f; + player.statLifeMax2 += 1000; + player.maxMinions += 20; } public override void AddRecipes() { CreateRecipe() .AddIngredient(ModContent.ItemType(), 18) - .AddTile(TileID.MythrilAnvil) + .AddIngredient(ModContent.ItemType(), 12) + .AddTile(ModContent.TileType()) .Register(); } } diff --git a/Content/Items/Armor/SingularitySet/SingularityHelmet.cs b/Content/Items/Armor/SingularitySet/SingularityHelmet.cs index 4c2cbcd..52367c8 100644 --- a/Content/Items/Armor/SingularitySet/SingularityHelmet.cs +++ b/Content/Items/Armor/SingularitySet/SingularityHelmet.cs @@ -3,6 +3,7 @@ using Terraria.ID; using Terraria.ModLoader; using ForgottenWawiTech.Content.Items.Materials; using ForgottenWawiTech.Content.Rarities; +using ForgottenWawiTech.Content.Tiles.CraftingStations; namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet { @@ -13,15 +14,18 @@ namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet { Item.width = 18; Item.height = 18; - Item.value = Item.sellPrice(gold: 5); + Item.value = Item.sellPrice(platinum: 500); Item.rare = ModContent.RarityType(); - Item.defense = 18; + Item.defense = 100; } public override void UpdateEquip(Player player) { - player.GetDamage(DamageClass.Generic) += 0.15f; - player.GetCritChance(DamageClass.Generic) += 10; + player.GetDamage(DamageClass.Generic) += 0.5f; + player.GetCritChance(DamageClass.Generic) += 100; + player.endurance += 0.10f; + player.statLifeMax2 += 500; + } public override bool IsArmorSet(Item head, Item body, Item legs) @@ -31,16 +35,18 @@ namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet public override void UpdateArmorSet(Player player) { - player.setBonus = "Increased damage and critical strike chance\n+20% damage\n+15% critical strike chance"; - player.GetDamage(DamageClass.Generic) += 0.20f; - player.GetCritChance(DamageClass.Generic) += 15; + player.setBonus = "Every hit is a guaranteed critical hit.\nIncreases defense by 50% and allows you to walk on water."; + player.GetCritChance(DamageClass.Generic) = 1000; + player.waterWalk = true; + player.statDefense *= 1.5f; } public override void AddRecipes() { CreateRecipe() .AddIngredient(ModContent.ItemType(), 12) - .AddTile(TileID.MythrilAnvil) + .AddIngredient(ModContent.ItemType(), 8) + .AddTile(ModContent.TileType()) .Register(); } } diff --git a/Content/Items/Armor/SingularitySet/SingularityLeggings.cs b/Content/Items/Armor/SingularitySet/SingularityLeggings.cs index c286230..985e9fe 100644 --- a/Content/Items/Armor/SingularitySet/SingularityLeggings.cs +++ b/Content/Items/Armor/SingularitySet/SingularityLeggings.cs @@ -3,6 +3,7 @@ using Terraria.ID; using Terraria.ModLoader; using ForgottenWawiTech.Content.Items.Materials; using ForgottenWawiTech.Content.Rarities; +using ForgottenWawiTech.Content.Tiles.CraftingStations; namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet { @@ -13,22 +14,27 @@ namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet { Item.width = 18; Item.height = 18; - Item.value = Item.sellPrice(gold: 5); + Item.value = Item.sellPrice(platinum: 500); Item.rare = ModContent.RarityType(); - Item.defense = 16; + Item.defense = 100; } public override void UpdateEquip(Player player) { - player.moveSpeed += 50f; - player.GetDamage(DamageClass.Generic) += 5f; + player.moveSpeed += 5f; + player.GetDamage(DamageClass.Generic) += 0.5f; + player.endurance += 0.10f; + player.statLifeMax2 += 500; + player.wingTimeMax += 9000; + player.wingTime += 9000; } public override void AddRecipes() { CreateRecipe() .AddIngredient(ModContent.ItemType(), 15) - .AddTile(TileID.MythrilAnvil) + .AddIngredient(ModContent.ItemType(), 10) + .AddTile(ModContent.TileType()) .Register(); } } diff --git a/Content/Items/Materials/SingularityAlloy.cs b/Content/Items/Materials/SingularityAlloy.cs new file mode 100644 index 0000000..c222d10 --- /dev/null +++ b/Content/Items/Materials/SingularityAlloy.cs @@ -0,0 +1,20 @@ +using Terraria.ID; +using Terraria; +using Terraria.ModLoader; +using ForgottenWawiTech.Content.Rarities; + +namespace ForgottenWawiTech.Content.Items.Materials +{ + public class SingularityAlloy : ModItem + { + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.maxStack = 9999; + Item.rare = ModContent.RarityType(); + Item.value = Item.buyPrice(gold: 10); + } + } +} \ No newline at end of file diff --git a/Content/Items/Materials/SingularityAlloy.png b/Content/Items/Materials/SingularityAlloy.png new file mode 100644 index 0000000000000000000000000000000000000000..9e0cf81e52f4133dbe85453dd9a37993af17b5be GIT binary patch literal 504 zcmeAS@N?(olHy`uVBq!ia0vp^0U*r53?z4+XPOVBbOU@sT!FNbf{DF-NtsjE_3B;! z|NjSy0D+K@p01v+t9x8zR#D@WS?dlQ`1+YJESG!@x4dC7*`C93=UXkhhvvt!hjSLlJ~RwmnP~Bh_e#*cGOJz5H)U2RZk=*d{>S{o z|7E^K_FWXNcxrjXh&wV*Hfp0Ti%!ljhM&t`NT+&77>M@wN(xASbQfH=B6&8`PK|k& o(pT;d?|57xzrgJ7^Ax@sCjQeEzP*#>W`d&2)78&qol`;+07t#pIRF3v literal 0 HcmV?d00001 diff --git a/Localization/en-US_Mods.ForgottenWawiTech.hjson b/Localization/en-US_Mods.ForgottenWawiTech.hjson index dc35b67..9670b1c 100644 --- a/Localization/en-US_Mods.ForgottenWawiTech.hjson +++ b/Localization/en-US_Mods.ForgottenWawiTech.hjson @@ -146,17 +146,41 @@ Items: { SingularityChestplate: { DisplayName: Singularity Chestplate - Tooltip: "" + Tooltip: + ''' + +50% damage + +40 max mana + +10% damage reduction + -50% mana cost + +1000 max life + +20 max minions + 'You feel a strange power coursing through your veins.' + ''' } SingularityHelmet: { DisplayName: Singularity Helmet - Tooltip: "" + Tooltip: + ''' + +50% damage + +100% critical strike chance + +10% damage reduction + +500 max life + 'Your mind feels sharper, as if touched by the void itself.' + ''' } SingularityLeggings: { DisplayName: Singularity Leggings - Tooltip: "" + Tooltip: + ''' + +500% movement speed + +50% damage + +10% damage reduction + +500 max life + Allows infinite flight. + 'You feel lighter on your feet, as if gravity itself has less hold on you.' + ''' } SingularityAxe: { @@ -193,6 +217,11 @@ Items: { Tooltip: "" DisplayName: Energy Core } + + SingularityAlloy: { + Tooltip: "" + DisplayName: Singularity Alloy + } } NPCs: {