2 - Buffs to Interstellar Stompers; now gives 6% movement speed, halved slam charge-up time, slightly increased slam explosion size 3 - Fixed Interstellar Stompers not properly resetting their slam effect when unequipped, giving permanent contact damage immunity
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
[LegacyName("GravistarSabaton")]
|
|
public class InterstellarStompers : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Accessories";
|
|
|
|
public static readonly int PassthroughDamage = 150;
|
|
public static readonly int SlamDamage = 300;
|
|
public static readonly int PassthroughIFrames = 5;
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 20;
|
|
Item.height = 22;
|
|
Item.value = CalamityGlobalItem.RarityLimeBuyPrice;
|
|
Item.accessory = true;
|
|
Item.rare = ItemRarityID.Lime;
|
|
}
|
|
|
|
public override void ModifyTooltips(List<TooltipLine> list) => list.IntegrateHotkey(CalamityKeybinds.GravistarSabatonHotkey);
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
player.noFallDmg = true;
|
|
player.moveSpeed += 0.06f;
|
|
player.jumpSpeedBoost += 1f;
|
|
player.Calamity().gSabaton = true;
|
|
}
|
|
}
|
|
}
|