45 -> 20 base dps Abaddon 3.5x -> 3x crit to bane damage Apollyon 7.5x -> 8x crit to bane damage Abaddon with 40% crit (6 lucky, 12% gear crit): 44 DPS (Tier expects ~550 DPS total) Apollyon with 55% crit (6 lucky, 27% gear crit): 108 DPS (Tier expects ~1300 DPS total. It's very easy to critmax further then this at this tier.)
51 lines
1.8 KiB
C#
51 lines
1.8 KiB
C#
using System.Collections.Generic;
|
|
using CalamityMod.Buffs.DamageOverTime;
|
|
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
[LegacyName("VoidofExtinction")]
|
|
public class Apollyon : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Accessories";
|
|
|
|
public static float critScaling = 8f; // How effective crit chance is at increasing debuff damage
|
|
public static float critDamageBoostPerDebuff = 0.03f; // 3% increased crit damage per debuff
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 26;
|
|
Item.height = 26;
|
|
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
|
|
Item.rare = ItemRarityID.Yellow;
|
|
Item.accessory = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<Abaddon>().
|
|
AddIngredient<ScoriaBar>(3).
|
|
AddIngredient<CoreofCalamity>().
|
|
AddTile(TileID.MythrilAnvil).
|
|
Register();
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.apollyon = true;
|
|
modPlayer.abaddonEffectVisual = !hideVisual;
|
|
}
|
|
public override void ModifyTooltips(List<TooltipLine> list)
|
|
{
|
|
if (Main.LocalPlayer != null)
|
|
list.FindAndReplace("[DAMAGELINE]", Main.LocalPlayer.Calamity().apollyon ? this.GetLocalization("Equipped").Format(((int)(Bane.debuffData.EnemyLostRegen / 2 * Main.LocalPlayer.Calamity().playerBaneDebuffDamage)).ToString())
|
|
: this.GetLocalizedValue("Unequipped"));
|
|
}
|
|
}
|
|
}
|