Added Stealth damage class, not implemented yet
This commit is contained in:
1 parent
cface70d32
commit
5e13892ea1
3 files changed
+65
-26
No files matched your search
@@ -1,25 +0,0 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod
|
||||
{
|
||||
public class RogueDamageClass : DamageClass
|
||||
{
|
||||
internal static RogueDamageClass Instance;
|
||||
|
||||
public override void Load() => Instance = this;
|
||||
public override void Unload() => Instance = null;
|
||||
|
||||
public override StatInheritanceData GetModifierInheritance(DamageClass damageClass)
|
||||
{
|
||||
if (damageClass == Throwing || damageClass == Generic)
|
||||
return StatInheritanceData.Full;
|
||||
|
||||
return StatInheritanceData.None;
|
||||
}
|
||||
|
||||
public override bool GetEffectInheritance(DamageClass damageClass) =>
|
||||
damageClass == Throwing;
|
||||
|
||||
// SetDefaultStats not included, because the player gets 4% Throwing crit by default, which carries over to this
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
// + Throwing
|
||||
// '--+ Rogue
|
||||
// '--> Stealth
|
||||
|
||||
namespace CalamityMod
|
||||
{
|
||||
// Rogue is a subclass of Throwing (the removed vanilla class re-added by TML).
|
||||
// It has no technical differences from Throwing, but is used by all Calamity thrown weapons.
|
||||
public class RogueDamageClass : DamageClass
|
||||
{
|
||||
internal static RogueDamageClass Instance;
|
||||
|
||||
public override void Load() => Instance = this;
|
||||
public override void Unload() => Instance = null;
|
||||
|
||||
public override StatInheritanceData GetModifierInheritance(DamageClass damageClass)
|
||||
{
|
||||
if (damageClass == Throwing || damageClass == Generic)
|
||||
return StatInheritanceData.Full;
|
||||
|
||||
return StatInheritanceData.None;
|
||||
}
|
||||
|
||||
public override bool GetEffectInheritance(DamageClass damageClass) =>
|
||||
damageClass == Throwing;
|
||||
|
||||
// SetDefaultStats not included, because the player gets 4% Throwing crit by default, which carries over to this
|
||||
}
|
||||
|
||||
// TODO -- actually implement stealth strikes to be Stealth class
|
||||
// Stealth is a subclass of Rogue which is used for stealth strikes.
|
||||
// Stat boosts to this class will specifically only apply to stealth strikes.
|
||||
// No weapons are Stealth class, only projectiles.
|
||||
// Stealth class damage calculations are shown in tooltips for convenience.
|
||||
public class StealthDamageClass : DamageClass
|
||||
{
|
||||
internal static StealthDamageClass Instance;
|
||||
|
||||
public override void Load() => Instance = this;
|
||||
public override void Unload() => Instance = null;
|
||||
|
||||
public override StatInheritanceData GetModifierInheritance(DamageClass damageClass)
|
||||
{
|
||||
if (damageClass == Generic || damageClass == Throwing || damageClass == RogueDamageClass.Instance)
|
||||
return StatInheritanceData.Full;
|
||||
|
||||
return StatInheritanceData.None;
|
||||
}
|
||||
|
||||
// Stealth inherits effects from Throwing and regular Rogue.
|
||||
public override bool GetEffectInheritance(DamageClass damageClass) =>
|
||||
damageClass == Throwing || damageClass == RogueDamageClass.Instance;
|
||||
|
||||
// SetDefaultStats not included, because the player gets 4% Throwing crit by default, which carries over to this
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,14 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
// + Melee
|
||||
// |--> MeleeNoSpeed
|
||||
// |
|
||||
// '--+ TrueMelee
|
||||
// '--> TrueMeleeNoSpeed
|
||||
|
||||
namespace CalamityMod
|
||||
{
|
||||
// True Melee is a subclass of Melee that is affected by melee speed.
|
||||
// True Melee is a subclass of Melee (that is, the one affected by melee speed).
|
||||
// You can give players regular melee speed and it will affect true melee weapons of this damage class.
|
||||
// If you want to give players attack speed which only affects true melee weapons, give them TrueMeleeDamageClass attack speed.
|
||||
public class TrueMeleeDamageClass : DamageClass
|
||||
|
||||
Reference in new issue
Block a user