diff --git a/MrBigsock/Assets/Code/Core/AttackStats.cs b/MrBigsock/Assets/Code/Core/AttackStats.cs index d3aeae50562f313ed9c68260f0fe6fc7a83fc4e3..d2e844c4ef80f755d83b2078913b94de65059227 100644 --- a/MrBigsock/Assets/Code/Core/AttackStats.cs +++ b/MrBigsock/Assets/Code/Core/AttackStats.cs @@ -55,6 +55,11 @@ namespace BigSock { The how much to modify damage by when critting. */ public float CritDamageModifier { get; set; } = 1; + + /* + How much the damage can vary in percent. + */ + public float DamageVariance { get; set; } = 0.2; } } \ No newline at end of file diff --git a/MrBigsock/Assets/Code/Core/IAttackStats.cs b/MrBigsock/Assets/Code/Core/IAttackStats.cs index 6eb78fbfc525faf22d4c2e77e4d825a1d2e4bc55..1105c0211c494f36b4ab02effd2e9096b3d32d39 100644 --- a/MrBigsock/Assets/Code/Core/IAttackStats.cs +++ b/MrBigsock/Assets/Code/Core/IAttackStats.cs @@ -55,6 +55,11 @@ namespace BigSock { The how much to modify damage by when critting. */ float CritDamageModifier { get; } + + /* + How much the damage can vary in percent. + */ + float DamageVariance { get; } } @@ -78,7 +83,7 @@ namespace BigSock { Actor = a.Actor, CritChance = a.CritChance * b.CritChance, CritDamageModifier = a.CritDamageModifier * b.CritDamageModifier, - + DamageVariance = a.DamageVariance, }; } }