Add Singularity Alloy, add a (possibly final) set bonus for Singularity Set
This commit is contained in:
@@ -17,8 +17,8 @@ namespace ForgottenWawiTech.Content.Items.Accessories
|
|||||||
|
|
||||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||||
{
|
{
|
||||||
player.statMana = player.statManaMax2;
|
|
||||||
player.statManaMax2 = 1000;
|
player.statManaMax2 = 1000;
|
||||||
|
player.statMana = player.statManaMax2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,7 @@ using Terraria.ID;
|
|||||||
using Terraria.ModLoader;
|
using Terraria.ModLoader;
|
||||||
using ForgottenWawiTech.Content.Items.Materials;
|
using ForgottenWawiTech.Content.Items.Materials;
|
||||||
using ForgottenWawiTech.Content.Rarities;
|
using ForgottenWawiTech.Content.Rarities;
|
||||||
|
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
||||||
|
|
||||||
namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet
|
namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet
|
||||||
{
|
{
|
||||||
@@ -13,22 +14,27 @@ namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet
|
|||||||
{
|
{
|
||||||
Item.width = 18;
|
Item.width = 18;
|
||||||
Item.height = 18;
|
Item.height = 18;
|
||||||
Item.value = Item.sellPrice(gold: 5);
|
Item.value = Item.sellPrice(platinum: 500);
|
||||||
Item.rare = ModContent.RarityType<SingularityItem>();
|
Item.rare = ModContent.RarityType<SingularityItem>();
|
||||||
Item.defense = 24;
|
Item.defense = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void UpdateEquip(Player player)
|
public override void UpdateEquip(Player player)
|
||||||
{
|
{
|
||||||
player.GetDamage(DamageClass.Generic) += 0.12f;
|
player.GetDamage(DamageClass.Generic) += 0.5f;
|
||||||
player.statManaMax2 += 40;
|
player.statManaMax2 += 40;
|
||||||
|
player.endurance += 0.10f;
|
||||||
|
player.manaCost -= 0.5f;
|
||||||
|
player.statLifeMax2 += 1000;
|
||||||
|
player.maxMinions += 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void AddRecipes()
|
public override void AddRecipes()
|
||||||
{
|
{
|
||||||
CreateRecipe()
|
CreateRecipe()
|
||||||
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 18)
|
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 18)
|
||||||
.AddTile(TileID.MythrilAnvil)
|
.AddIngredient(ModContent.ItemType<SingularityAlloy>(), 12)
|
||||||
|
.AddTile(ModContent.TileType<SingularitySealingUnit>())
|
||||||
.Register();
|
.Register();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using Terraria.ID;
|
|||||||
using Terraria.ModLoader;
|
using Terraria.ModLoader;
|
||||||
using ForgottenWawiTech.Content.Items.Materials;
|
using ForgottenWawiTech.Content.Items.Materials;
|
||||||
using ForgottenWawiTech.Content.Rarities;
|
using ForgottenWawiTech.Content.Rarities;
|
||||||
|
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
||||||
|
|
||||||
namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet
|
namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet
|
||||||
{
|
{
|
||||||
@@ -13,15 +14,18 @@ namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet
|
|||||||
{
|
{
|
||||||
Item.width = 18;
|
Item.width = 18;
|
||||||
Item.height = 18;
|
Item.height = 18;
|
||||||
Item.value = Item.sellPrice(gold: 5);
|
Item.value = Item.sellPrice(platinum: 500);
|
||||||
Item.rare = ModContent.RarityType<SingularityItem>();
|
Item.rare = ModContent.RarityType<SingularityItem>();
|
||||||
Item.defense = 18;
|
Item.defense = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void UpdateEquip(Player player)
|
public override void UpdateEquip(Player player)
|
||||||
{
|
{
|
||||||
player.GetDamage(DamageClass.Generic) += 0.15f;
|
player.GetDamage(DamageClass.Generic) += 0.5f;
|
||||||
player.GetCritChance(DamageClass.Generic) += 10;
|
player.GetCritChance(DamageClass.Generic) += 100;
|
||||||
|
player.endurance += 0.10f;
|
||||||
|
player.statLifeMax2 += 500;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
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)
|
public override void UpdateArmorSet(Player player)
|
||||||
{
|
{
|
||||||
player.setBonus = "Increased damage and critical strike chance\n+20% damage\n+15% critical strike chance";
|
player.setBonus = "Every hit is a guaranteed critical hit.\nIncreases defense by 50% and allows you to walk on water.";
|
||||||
player.GetDamage(DamageClass.Generic) += 0.20f;
|
player.GetCritChance(DamageClass.Generic) = 1000;
|
||||||
player.GetCritChance(DamageClass.Generic) += 15;
|
player.waterWalk = true;
|
||||||
|
player.statDefense *= 1.5f;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void AddRecipes()
|
public override void AddRecipes()
|
||||||
{
|
{
|
||||||
CreateRecipe()
|
CreateRecipe()
|
||||||
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 12)
|
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 12)
|
||||||
.AddTile(TileID.MythrilAnvil)
|
.AddIngredient(ModContent.ItemType<SingularityAlloy>(), 8)
|
||||||
|
.AddTile(ModContent.TileType<SingularitySealingUnit>())
|
||||||
.Register();
|
.Register();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using Terraria.ID;
|
|||||||
using Terraria.ModLoader;
|
using Terraria.ModLoader;
|
||||||
using ForgottenWawiTech.Content.Items.Materials;
|
using ForgottenWawiTech.Content.Items.Materials;
|
||||||
using ForgottenWawiTech.Content.Rarities;
|
using ForgottenWawiTech.Content.Rarities;
|
||||||
|
using ForgottenWawiTech.Content.Tiles.CraftingStations;
|
||||||
|
|
||||||
namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet
|
namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet
|
||||||
{
|
{
|
||||||
@@ -13,22 +14,27 @@ namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet
|
|||||||
{
|
{
|
||||||
Item.width = 18;
|
Item.width = 18;
|
||||||
Item.height = 18;
|
Item.height = 18;
|
||||||
Item.value = Item.sellPrice(gold: 5);
|
Item.value = Item.sellPrice(platinum: 500);
|
||||||
Item.rare = ModContent.RarityType<SingularityItem>();
|
Item.rare = ModContent.RarityType<SingularityItem>();
|
||||||
Item.defense = 16;
|
Item.defense = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void UpdateEquip(Player player)
|
public override void UpdateEquip(Player player)
|
||||||
{
|
{
|
||||||
player.moveSpeed += 50f;
|
player.moveSpeed += 5f;
|
||||||
player.GetDamage(DamageClass.Generic) += 5f;
|
player.GetDamage(DamageClass.Generic) += 0.5f;
|
||||||
|
player.endurance += 0.10f;
|
||||||
|
player.statLifeMax2 += 500;
|
||||||
|
player.wingTimeMax += 9000;
|
||||||
|
player.wingTime += 9000;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void AddRecipes()
|
public override void AddRecipes()
|
||||||
{
|
{
|
||||||
CreateRecipe()
|
CreateRecipe()
|
||||||
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 15)
|
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 15)
|
||||||
.AddTile(TileID.MythrilAnvil)
|
.AddIngredient(ModContent.ItemType<SingularityAlloy>(), 10)
|
||||||
|
.AddTile(ModContent.TileType<SingularitySealingUnit>())
|
||||||
.Register();
|
.Register();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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<SingularityItem>();
|
||||||
|
Item.value = Item.buyPrice(gold: 10);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
@@ -146,17 +146,41 @@ Items: {
|
|||||||
|
|
||||||
SingularityChestplate: {
|
SingularityChestplate: {
|
||||||
DisplayName: Singularity Chestplate
|
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: {
|
SingularityHelmet: {
|
||||||
DisplayName: Singularity Helmet
|
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: {
|
SingularityLeggings: {
|
||||||
DisplayName: Singularity Leggings
|
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: {
|
SingularityAxe: {
|
||||||
@@ -193,6 +217,11 @@ Items: {
|
|||||||
Tooltip: ""
|
Tooltip: ""
|
||||||
DisplayName: Energy Core
|
DisplayName: Energy Core
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SingularityAlloy: {
|
||||||
|
Tooltip: ""
|
||||||
|
DisplayName: Singularity Alloy
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NPCs: {
|
NPCs: {
|
||||||
|
|||||||
Reference in New Issue
Block a user