Add singularity armor, multitool and rarity
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Items.Materials;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet
|
||||
{
|
||||
[AutoloadEquip(EquipType.Body)]
|
||||
public class SingularityChestplate : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = Item.sellPrice(gold: 5);
|
||||
Item.rare = ModContent.RarityType<SingularityItem>();
|
||||
Item.defense = 24;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage(DamageClass.Generic) += 0.12f;
|
||||
player.statManaMax2 += 40;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 18)
|
||||
.AddTile(TileID.MythrilAnvil)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
@@ -0,0 +1,47 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Items.Materials;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class SingularityHelmet : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = Item.sellPrice(gold: 5);
|
||||
Item.rare = ModContent.RarityType<SingularityItem>();
|
||||
Item.defense = 18;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage(DamageClass.Generic) += 0.15f;
|
||||
player.GetCritChance(DamageClass.Generic) += 10;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<SingularityChestplate>() && legs.type == ModContent.ItemType<SingularityLeggings>();
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 12)
|
||||
.AddTile(TileID.MythrilAnvil)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
@@ -0,0 +1,35 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Items.Materials;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Armor.SingularitySet
|
||||
{
|
||||
[AutoloadEquip(EquipType.Legs)]
|
||||
public class SingularityLeggings : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = Item.sellPrice(gold: 5);
|
||||
Item.rare = ModContent.RarityType<SingularityItem>();
|
||||
Item.defense = 16;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += 50f;
|
||||
player.GetDamage(DamageClass.Generic) += 5f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 15)
|
||||
.AddTile(TileID.MythrilAnvil)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
Reference in New Issue
Block a user