- Horrible new stats: -33% damage, +100% size - Ale: 15 -> 25% melee size - Dragon Rage is 15% smaller (counterbalance the 15% boost from titan glove) - Dragon Rage 1075 dmg -> 888 damage - Dragon Rage has pierce falloff, every target hit within each 5 frame window takes 25% less damage (additive). Resets every 5 frames. This ignores armored targets and carries over to the explosion, but not the fireballs - Dragon Rage fireballs 1/8 -> 1/2 damage, 60 -> 120 frame coodlown, no longer needs 10 hits to proc, and now homes in on highest HP target. Is unable to hit NPCs it is not targeting. Has tighter turning speed - BaseSwordHoldout-based projectiles properly get all types of melee scale
41 lines
1.4 KiB
C#
41 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
using CalamityMod.Items;
|
|
using Terraria;
|
|
using Terraria.Localization;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Prefixes
|
|
{
|
|
|
|
public class Horrible : HorribleWeaponPrefix
|
|
{
|
|
public override float damageMult => 0.66f;
|
|
public override float sizeMult => 2f;
|
|
}
|
|
public abstract class HorribleWeaponPrefix : ModPrefix, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Prefixes.Weapon";
|
|
|
|
// Stats
|
|
public virtual float damageMult => 1f;
|
|
public virtual float sizeMult => 1f;
|
|
|
|
public override PrefixCategory Category => PrefixCategory.AnyWeapon;
|
|
public override float RollChance(Item item) => 0; // Is manually applied by an item, can't be rerolled normally
|
|
public override bool CanRoll(Item item)
|
|
{
|
|
return item.DamageType != null && item.DamageType != DamageClass.Default;
|
|
}
|
|
// Applying normal weapon stats
|
|
public override void SetStats(ref float damageMult, ref float knockbackMult, ref float useTimeMult, ref float scaleMult, ref float shootSpeedMult, ref float manaMult, ref int critBonus)
|
|
{
|
|
damageMult = this.damageMult;
|
|
scaleMult = this.sizeMult;
|
|
}
|
|
public override void ModifyValue(ref float valueMult)
|
|
{
|
|
valueMult = 2.5f;
|
|
}
|
|
}
|
|
}
|