Add AvaliScoutPack
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
using Terraria;
|
||||||
|
using Terraria.ModLoader;
|
||||||
|
using ForgottenWawiTech.Content.Rarities;
|
||||||
|
|
||||||
|
namespace ForgottenWawiTech.Content.Items.Accessories
|
||||||
|
{
|
||||||
|
public class AvaliScoutPack : ModItem
|
||||||
|
{
|
||||||
|
public override void SetDefaults()
|
||||||
|
{
|
||||||
|
Item.width = 28;
|
||||||
|
Item.height = 28;
|
||||||
|
Item.accessory = true;
|
||||||
|
Item.rare = ModContent.RarityType<AvalianItem>();
|
||||||
|
Item.value = Item.sellPrice(silver: 50);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||||
|
{
|
||||||
|
// Reduces damage by 10% but increases movement speed by 15%
|
||||||
|
player.GetDamage(DamageClass.Generic) -= 0.10f;
|
||||||
|
player.moveSpeed += 0.15f;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
Reference in New Issue
Block a user