Jump to content
  • 0

call character value to Formulas.cs & Entity.cs ???



in this code. How to add my stats (armor penetration, dodge) to  random conditions like this


this code in Entity.cs (https://github.com/AscensionGameDev/Intersect-Engine/blob/main/Intersect.Server/Entities/Entity.cs)

   if (Randomization.Next(1, 101) > critChance)
                critMultiplier = 1;
                 //when random is not Crit. critMultiplier *1 

                PacketSender.SendActionMsg(enemy, Strings.Combat.critical, CustomColors.Combat.Critical);
                  //when random is Crit. critMultiplier *2 and show text  

"critMultipler" from Formulas.cs (https://github.com/AscensionGameDev/Intersect-Engine/blob/main/Intersect.Server/General/Formulas.cs)

public static int CalculateDamage(
            int baseDamage,
            DamageType damageType,
            Stats scalingStat,
            int scaling,
            double critMultiplier,
            Entity attacker,
            Entity victim

pls help me. thanks you


my progress


Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • Create New...