This commit is contained in:
23 files changed
+34
-28
No files matched your search
@@ -44,13 +44,16 @@ public class Gen7DamageCalculator(Gen7PluginConfiguration configuration) : IDama
|
||||
floatDamage = MathF.Floor(floatDamage * randomFactor);
|
||||
}
|
||||
|
||||
var stabModifier = 1.0f;
|
||||
var isStab = false;
|
||||
if (hitData.Type != null && executingMove.User.Types.Contains(hitData.Type.Value))
|
||||
{
|
||||
var stabModifier = 1.5f;
|
||||
executingMove.RunScriptHook(script =>
|
||||
script.ChangeStabModifier(executingMove, target, hitNumber, ref stabModifier));
|
||||
floatDamage = MathF.Floor(floatDamage * stabModifier);
|
||||
stabModifier = 1.5f;
|
||||
isStab = true;
|
||||
}
|
||||
executingMove.RunScriptHook(script =>
|
||||
script.ChangeStabModifier(executingMove, target, hitNumber, isStab, ref stabModifier));
|
||||
floatDamage = MathF.Floor(floatDamage * stabModifier);
|
||||
|
||||
floatDamage = MathF.Floor(floatDamage * hitData.Effectiveness);
|
||||
uint damage = floatDamage switch
|
||||
|
||||
Reference in new issue
Block a user