Added Veil of Vengeance
This commit is contained in:
parent
1925ce1a84
commit
bba5549405
@ -346,7 +346,7 @@ namespace Decimation.Content
|
|||||||
if (AmuletSlotItem.type == ModContent.ItemType<CrystalAmulet>() && Main.rand.NextBool(25))
|
if (AmuletSlotItem.type == ModContent.ItemType<CrystalAmulet>() && Main.rand.NextBool(25))
|
||||||
CrystalAmuletEffect();
|
CrystalAmuletEffect();
|
||||||
|
|
||||||
if (this.HasEquippedAccessory(ModContent.ItemType<WaspNecklace>()))
|
if (this.HasEquippedAccessory(ModContent.ItemType<WaspNecklace>()) || this.HasEquippedAccessory(ModContent.ItemType<VeilOfVengeance>()))
|
||||||
{
|
{
|
||||||
player.AddBuff(BuffID.Panic, 300);
|
player.AddBuff(BuffID.Panic, 300);
|
||||||
SpawnWaspNecklaceWasps();
|
SpawnWaspNecklaceWasps();
|
||||||
@ -394,7 +394,7 @@ namespace Decimation.Content
|
|||||||
if (AmuletSlotItem.type == ModContent.ItemType<CrystalAmulet>() && Main.rand.NextBool(25))
|
if (AmuletSlotItem.type == ModContent.ItemType<CrystalAmulet>() && Main.rand.NextBool(25))
|
||||||
CrystalAmuletEffect();
|
CrystalAmuletEffect();
|
||||||
|
|
||||||
if (this.HasEquippedAccessory(ModContent.ItemType<WaspNecklace>()))
|
if (this.HasEquippedAccessory(ModContent.ItemType<WaspNecklace>()) || this.HasEquippedAccessory(ModContent.ItemType<VeilOfVengeance>()))
|
||||||
{
|
{
|
||||||
player.AddBuff(BuffID.Panic, 300);
|
player.AddBuff(BuffID.Panic, 300);
|
||||||
SpawnWaspNecklaceWasps();
|
SpawnWaspNecklaceWasps();
|
||||||
|
|||||||
56
Content/Items/Accessories/VeilOfVengeance.cs
Normal file
56
Content/Items/Accessories/VeilOfVengeance.cs
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
using Decimation.Lib.Items;
|
||||||
|
using Decimation.Lib.Util;
|
||||||
|
using Decimation.Lib.Util.Builder;
|
||||||
|
using Terraria;
|
||||||
|
using Terraria.ID;
|
||||||
|
using Terraria.ModLoader;
|
||||||
|
|
||||||
|
namespace Decimation.Content.Items.Accessories
|
||||||
|
{
|
||||||
|
public class VeilOfVengeance : DecimationAccessory
|
||||||
|
{
|
||||||
|
protected override string ItemName => "Veil of Vengeance";
|
||||||
|
|
||||||
|
protected override string ItemTooltip => "Increases length of invincibility after taking damage\n" +
|
||||||
|
"Causes stars to fall after taking damage\n" +
|
||||||
|
"Releases wasps and increase movement speed after taking damage\n" +
|
||||||
|
"Attackers have 20% chances to be poisoned";
|
||||||
|
|
||||||
|
protected override void InitAccessory()
|
||||||
|
{
|
||||||
|
item.width = 26;
|
||||||
|
item.height = 32;
|
||||||
|
item.value = Item.buyPrice(gold: 19, silver: 70);
|
||||||
|
item.rare = Rarity.LightPurple.GetRarityValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||||
|
{
|
||||||
|
player.longInvince = true;
|
||||||
|
player.starCloak = true;
|
||||||
|
|
||||||
|
base.UpdateAccessory(player, hideVisual);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ModRecipe GetRecipe()
|
||||||
|
{
|
||||||
|
return new RecipeBuilder(this)
|
||||||
|
.WithIngredient(ModContent.ItemType<WaspNecklace>())
|
||||||
|
.WithIngredient(ItemID.StarVeil)
|
||||||
|
.WithIngredient(ItemID.SoulofMight, 20)
|
||||||
|
.WithStation(TileID.TinkerersWorkbench)
|
||||||
|
.Build();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
internal class VeilofVengeancePoisonEffect : GlobalNPC
|
||||||
|
{
|
||||||
|
public override void OnHitPlayer(NPC npc, Player target, int damage, bool crit)
|
||||||
|
{
|
||||||
|
if (target.HasEquippedAccessory(ModContent.ItemType<VeilOfVengeance>()) && Main.rand.NextBool(5))
|
||||||
|
npc.AddBuff(BuffID.Poisoned, 300);
|
||||||
|
|
||||||
|
base.OnHitPlayer(npc, target, damage, crit);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
Content/Items/Accessories/VeilOfVengeance.png
Normal file
BIN
Content/Items/Accessories/VeilOfVengeance.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 519 B |
@ -11,8 +11,7 @@ namespace Decimation.Content.Items.Accessories
|
|||||||
{
|
{
|
||||||
protected override string ItemName => "Wasp Necklace";
|
protected override string ItemName => "Wasp Necklace";
|
||||||
|
|
||||||
protected override string ItemTooltip => "Releases wasps after taking damage\n" +
|
protected override string ItemTooltip => "Releases wasps and increase movement speed after taking damage\n" +
|
||||||
"Increases movement speed after taking damage\n" +
|
|
||||||
"Attackers have 20% chances to be poisoned";
|
"Attackers have 20% chances to be poisoned";
|
||||||
|
|
||||||
protected override void InitAccessory()
|
protected override void InitAccessory()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user