Files
CalamityModPublic/Items/Accessories/PlaguedFuelPack.cs
T
Ozzatron 22afdd3933 1 - Calamity sell prices increase much more sharply with rarity.
2 - (Example) Post DoG items are now 2 platinum instead of 1 platinum 40 gold.
3 - (Example) Dev items are now 2 platinum 80 gold instead of 2 platinum.
4 - Privated numeric rarity item values.
5 - All assigned item values use the rarity's names, e.g. RarityLightPurpleBuyPrice.
2024-04-17 21:20:17 -04:00

36 lines
1.3 KiB
C#

using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class PlaguedFuelPack : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 20;
Item.height = 36;
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
Item.rare = ItemRarityID.Yellow;
Item.accessory = true;
}
// TODO -- Check if the slot contains the other rogue jetpack, in which case, let the player swap accs
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().hasJetpack;
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().hasJetpack = true;
player.GetDamage<ThrowingDamageClass>() += 0.08f;
player.Calamity().rogueVelocity += 0.15f;
player.Calamity().plaguedFuelPack = true;
player.Calamity().stealthGenStandstill += 0.1f;
player.Calamity().stealthGenMoving += 0.1f;
}
public override void ModifyTooltips(List<TooltipLine> list) => list.IntegrateHotkey(CalamityKeybinds.BoosterDashHotKey);
}
}