diff --git a/MrBigsock/Assets/Code/Core/CharacterStats.cs b/MrBigsock/Assets/Code/Core/CharacterStats.cs index 597fa8dae060455f21a487138dea7cfc12986285..f9e6e247ddf6a67262c6e79e6f57e5020f458f6c 100644 --- a/MrBigsock/Assets/Code/Core/CharacterStats.cs +++ b/MrBigsock/Assets/Code/Core/CharacterStats.cs @@ -25,6 +25,11 @@ namespace BigSock { The movement speed of the character. */ public float MoveSpeed { get; set; } + + /* + The projectile speed of the attack. + */ + public float ProjectileSpeed { get; set; } /* The knockback of the character. diff --git a/MrBigsock/Assets/Code/Core/IAttackStats.cs b/MrBigsock/Assets/Code/Core/IAttackStats.cs index 7b074246aca354491a19a3a592c6761e96455b04..27936bc5eea426af00f3d41c370fb1a86b3b74bb 100644 --- a/MrBigsock/Assets/Code/Core/IAttackStats.cs +++ b/MrBigsock/Assets/Code/Core/IAttackStats.cs @@ -97,14 +97,14 @@ namespace BigSock { Damage = a.Damage * b.Damage, Knockback = a.Knockback * b.Knockback, Range = a.Range * b.Range, - ProjectileSpeed = a.ProjectileSpeed, + ProjectileSpeed = a.ProjectileSpeed * b.ProjectileSpeed, AttackSpeed = a.AttackSpeed * b.AttackSpeed, CritChance = a.CritChance * b.CritChance, CritDamageModifier = a.CritDamageModifier * b.CritDamageModifier, Source = a.Source, Actor = a.Actor, - + DamageVariance = a.DamageVariance, IsCalculated = a.IsCalculated, IsCrit = a.IsCrit, diff --git a/MrBigsock/Assets/Code/Core/ICharacterStats.cs b/MrBigsock/Assets/Code/Core/ICharacterStats.cs index 371a7b14340c8c5cf40e827ef946a895a4c62a99..d18f091c659d24a689372638ef3b5a235b77e8d6 100644 --- a/MrBigsock/Assets/Code/Core/ICharacterStats.cs +++ b/MrBigsock/Assets/Code/Core/ICharacterStats.cs @@ -50,6 +50,11 @@ namespace BigSock { The how much to modify damage by when critting. */ float CritDamageModifier { get; } + + /* + The projectile speed of the attack. + */ + float ProjectileSpeed { get; } } @@ -69,6 +74,7 @@ namespace BigSock { AttackSpeed = 1, CritChance = 1, CritDamageModifier = 1, + ProjectileSpeed = 1, }; /* @@ -84,6 +90,7 @@ namespace BigSock { AttackSpeed = a.AttackSpeed + b.AttackSpeed, CritChance = a.CritChance + b.CritChance, CritDamageModifier = a.CritDamageModifier + b.CritDamageModifier, + ProjectileSpeed = a.ProjectileSpeed + b.ProjectileSpeed, }; } @@ -101,6 +108,7 @@ namespace BigSock { AttackSpeed = a.AttackSpeed - b.AttackSpeed, CritChance = a.CritChance - b.CritChance, CritDamageModifier = a.CritDamageModifier - b.CritDamageModifier, + ProjectileSpeed = a.ProjectileSpeed - b.ProjectileSpeed, }; } @@ -117,6 +125,7 @@ namespace BigSock { AttackSpeed = a.AttackSpeed * b.AttackSpeed, CritChance = a.CritChance * b.CritChance, CritDamageModifier = a.CritDamageModifier * b.CritDamageModifier, + ProjectileSpeed = a.ProjectileSpeed * b.ProjectileSpeed, }; }