Added The Mind trinity item.
This commit is contained in:
parent
4636e76d76
commit
8ea2e21eb6
@ -1,3 +1,4 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
using Decimation.Lib.Util;
|
using Decimation.Lib.Util;
|
||||||
using Microsoft.Xna.Framework;
|
using Microsoft.Xna.Framework;
|
||||||
using Terraria;
|
using Terraria;
|
||||||
@ -11,8 +12,8 @@ namespace Decimation.Content.Items.Accessories.Trinity
|
|||||||
|
|
||||||
protected override string ItemTooltip => "I feel all...\n" +
|
protected override string ItemTooltip => "I feel all...\n" +
|
||||||
"Increases maximum life by 50\n" +
|
"Increases maximum life by 50\n" +
|
||||||
"You deal 10% more melee damage\n" +
|
"Increases melee damage by 10%\n" +
|
||||||
"Your melee critical hit chances are increased by 10%\n" +
|
"Increases melee critical hit chances by 10%\n" +
|
||||||
"Hostile projectiles have 10% chance to ricochet off you\nand target your enemies with 50% increased damage";
|
"Hostile projectiles have 10% chance to ricochet off you\nand target your enemies with 50% increased damage";
|
||||||
|
|
||||||
protected override void InitAccessory()
|
protected override void InitAccessory()
|
||||||
@ -33,6 +34,14 @@ namespace Decimation.Content.Items.Accessories.Trinity
|
|||||||
|
|
||||||
base.UpdateAccessory(player, hideVisual);
|
base.UpdateAccessory(player, hideVisual);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||||
|
{
|
||||||
|
tooltips.Add(new TooltipLine(mod, "trinity", "Trinity")
|
||||||
|
{
|
||||||
|
overrideColor = Color.Red
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class BodyProjectileEffects : GlobalProjectile
|
class BodyProjectileEffects : GlobalProjectile
|
||||||
|
|||||||
52
Content/Items/Accessories/Trinity/Mind.cs
Normal file
52
Content/Items/Accessories/Trinity/Mind.cs
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using Decimation.Lib.Util;
|
||||||
|
using Microsoft.Xna.Framework;
|
||||||
|
using Terraria;
|
||||||
|
using Terraria.ID;
|
||||||
|
using Terraria.ModLoader;
|
||||||
|
|
||||||
|
namespace Decimation.Content.Items.Accessories.Trinity
|
||||||
|
{
|
||||||
|
public class Mind : TrinityAccessory
|
||||||
|
{
|
||||||
|
protected override string ItemName => "The Mind";
|
||||||
|
protected override string ItemTooltip => "I know all...\n" +
|
||||||
|
"Increases block placement and mining speed by 10%\n" +
|
||||||
|
"Increases ranged and thrown damage by 10%\n" +
|
||||||
|
"Increases ranged and thrown critical hit chances by 10%\n" +
|
||||||
|
"Allows you to see nearby danger sources\n" +
|
||||||
|
"Shows the location of treasure and ore";
|
||||||
|
|
||||||
|
protected override void InitAccessory()
|
||||||
|
{
|
||||||
|
item.width = 10;
|
||||||
|
item.height = 16;
|
||||||
|
item.expert = true;
|
||||||
|
item.rare = Rarity.Rainbow.GetRarityValue();
|
||||||
|
item.value = Item.sellPrice(gold: 5);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||||
|
{
|
||||||
|
player.pickSpeed *= 1.10f;
|
||||||
|
player.tileSpeed *= 1.10f;
|
||||||
|
player.rangedDamage *= 1.10f;
|
||||||
|
player.rangedCrit = (int) (player.rangedCrit * 1.10f);
|
||||||
|
player.thrownDamage *= 1.10f;
|
||||||
|
player.thrownCrit = (int) (player.thrownCrit * 1.10f);
|
||||||
|
|
||||||
|
player.AddBuff(BuffID.Spelunker, 1);
|
||||||
|
player.AddBuff(BuffID.Dangersense, 1);
|
||||||
|
|
||||||
|
base.UpdateAccessory(player, hideVisual);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||||
|
{
|
||||||
|
tooltips.Add(new TooltipLine(mod, "trinity", "Trinity")
|
||||||
|
{
|
||||||
|
overrideColor = Color.Yellow
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
Content/Items/Accessories/Trinity/Mind.png
Normal file
BIN
Content/Items/Accessories/Trinity/Mind.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 204 B |
@ -1,4 +1,6 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
using Decimation.Lib.Util;
|
using Decimation.Lib.Util;
|
||||||
|
using Microsoft.Xna.Framework;
|
||||||
using Terraria;
|
using Terraria;
|
||||||
using Terraria.ModLoader;
|
using Terraria.ModLoader;
|
||||||
|
|
||||||
@ -9,11 +11,11 @@ namespace Decimation.Content.Items.Accessories.Trinity
|
|||||||
protected override string ItemName => "The Soul";
|
protected override string ItemName => "The Soul";
|
||||||
protected override string ItemTooltip => "I am all...\n" +
|
protected override string ItemTooltip => "I am all...\n" +
|
||||||
"Increases maximum mana by 50\n" +
|
"Increases maximum mana by 50\n" +
|
||||||
"You deal 10% more magic and minion damage\n" +
|
"Increases magic and minion damage by 10%\n" +
|
||||||
"Your magic critical hit chances are increased by 10%\n" +
|
"Increases magic critical hit chances by 10%\n" +
|
||||||
"Your minions knockback is increased by 10%" +
|
"Increases minions knockback by 10%" +
|
||||||
"Your criticals hits leech mana\n" +
|
"Criticals hits leech mana\n" +
|
||||||
"Hostile projectiles have 10% to phase through you,\nnegating all damage and causing your next attack to be a critical hit";
|
"Hostile projectiles have 10% chance to phase through you,\nnegating all damage and causing your next attack to be a critical hit";
|
||||||
|
|
||||||
protected override void InitAccessory()
|
protected override void InitAccessory()
|
||||||
{
|
{
|
||||||
@ -34,6 +36,14 @@ namespace Decimation.Content.Items.Accessories.Trinity
|
|||||||
|
|
||||||
base.UpdateAccessory(player, hideVisual);
|
base.UpdateAccessory(player, hideVisual);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||||
|
{
|
||||||
|
tooltips.Add(new TooltipLine(mod, "trinity", "Trinity")
|
||||||
|
{
|
||||||
|
overrideColor = Color.Blue
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class SoulItemEffects : GlobalItem
|
class SoulItemEffects : GlobalItem
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user