Files
CalamityModPublic/Items/NormalityRelocator.cs
T
Andrew Marheine 49b36fb579 1 - Boss Zen buff changed to Boss Effects.
2 - Adjusted Hallowed Rune, Spirit Glyph and Phantomic Artifact buffs to be less insane.
3 - Reduced Camper regen.
4 - Boss Effects is now applied by the boss to each player within 6400 units of it.
5 - Angel Treads improve wing flight time by 10% instead of 20%.
6 - Adjusted several tooltips to state that they don't work during boss fights or have reduced effect during boss fights.
7 - Reworked Arbalest, Skullmasher and Pearl God. Skullmasher is not done yet though.
8 - Fixed Golden Eagle spread.
9 - Normality Relocator states that it gives portal gun fall speed for 30 frames after a teleport.
10 - Gael's Greatsword drops from Malice Mode SCal.
11 - Perforator Hive doesn't deal contact damage for 3 seconds after spawning.
2021-04-21 18:57:16 -05:00

65 lines
2.2 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Placeables.Plates;
using CalamityMod.Items.Placeables.Ores;
using System.Collections.Generic;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items
{
public class NormalityRelocator : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Normality Relocator");
Tooltip.SetDefault("I'll be there in the blink of an eye\n" +
"This line is modified below\n" +
"Fall speed is doubled for 30 frames after teleporting\n" +
"Teleportation is disabled while Chaos State is active\n" +
"Works while in the inventory");
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 7));
}
public override void SetDefaults()
{
item.width = 38;
item.height = 38;
item.value = CalamityGlobalItem.Rarity11BuyPrice;
item.rare = ItemRarityID.Purple;
item.Calamity().donorItem = true;
}
public override void ModifyTooltips(List<TooltipLine> list)
{
string hotkey = CalamityMod.NormalityRelocatorHotKey.TooltipHotkeyString();
foreach (TooltipLine line2 in list)
{
if (line2.mod == "Terraria" && line2.Name == "Tooltip1")
{
line2.text = "Press " + hotkey + " to teleport to the position of the mouse";
}
}
}
public override void UpdateInventory(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.normalityRelocator = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.RodofDiscord);
recipe.AddIngredient(ItemID.FragmentStardust, 30);
recipe.AddIngredient(ModContent.ItemType<ExodiumClusterOre>(), 10);
recipe.AddIngredient(ModContent.ItemType<Cinderplate>(), 5);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}