Wycademy/src/Wycademy/Commands/Services/DamageCalculatorService.cs
/// <summary>
/// Calculates and makes a string out of the inputted message, using Monster Hunter 4 Ultimate numbers (i.e. converts display raw to true).
/// </summary>
/// <param name="message">The data message to calculate from.</param>
/// <returns>The messag to show the user.</returns>
Calculates and makes a string out of the inputted message, using Monster Hunter 4 Ultimate numbers .
Calculates and makes a string out of the inputted message using Monster Hunter 4 Ultimate numbers .
private string GetResponseMessage4U(DamageCalculatorMessage message)
        {
            var modifiers = message.GetSharpnessModifiers();
            float expectedRaw = (message.RawDamage / WEAPON_MODIFIERS[message.Weapon] * (1 + 0.25f * (message.Affinity / 100))) * modifiers.RawModifier;
            float expectedElement = message.ElementDamage / 10.0f * modifiers.ElementModifier;
            var sb = new StringBuilder();
            sb.AppendLine("```");
            sb.AppendLine($"Expected raw: {expectedRaw}");
            sb.AppendLine($"Expected element: {expectedElement}");
            sb.AppendLine("Note: these numbers do not take into account motion values, hitzones, rank modifiers, and individual quest modifiers.");
            sb.AppendLine("```");
            return sb.ToString();
        }
private string GetResponseMessage4U ( DamageCalculatorMessage message ) { var modifiers = message . GetSharpnessModifiers ( ) ; float expectedRaw = ( message . RawDamage / WEAPON_MODIFIERS [ message . Weapon ] * ( 1 + 0.25f * ( message . Affinity / 100 ) ) ) * modifiers . RawModifier ; float expectedElement = message . ElementDamage / 10.0f * modifiers . ElementModifier ; var sb = new StringBuilder ( ) ; sb . AppendLine ( " " ) ; sb . AppendLine ( $" Expected raw:  { expectedRaw } " ) ; sb . AppendLine ( $" Expected element:  { expectedElement } " ) ; sb . AppendLine ( " " ) ; sb . AppendLine ( " " ) ; return sb . ToString ( ) ; }
Calculates and makes a string out of the inputted message, using Monster Hunter 4 Ultimate numbers (i.e.
Calculates and makes a string out of the inputted message using Monster Hunter 4 Ultimate numbers ( i . e .
// Expected raw in 4u is: (Attack / Weapon Modifier * (1 + 0.25 * (Affinity / 100))) * Raw Sharpness Modifier. // Expected element/status in 4u is Attack / 10 * Elemental/Status Sharpness Modifier.
The messag to show the user.
The messag to show the user .
message
DamageCalculatorMessage
The data message to calculate from.
The data message to calculate from .