if (Randomization.Next(1, 101) > critChance)
{
critMultiplier = 1;
//when random is not Crit. critMultiplier *1
}
else
{
PacketSender.SendActionMsg(enemy, Strings.Combat.critical, CustomColors.Combat.Critical);
//when random is Crit. critMultiplier *2 and show text
}
public static int CalculateDamage(
int baseDamage,
DamageType damageType,
Stats scalingStat,
int scaling,
double critMultiplier,
Entity attacker,
Entity victim
)
Question
nvh
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)
"critMultipler" from Formulas.cs (https://github.com/AscensionGameDev/Intersect-Engine/blob/main/Intersect.Server/General/Formulas.cs)
pls help me. thanks you
Â
my progress
Link to comment
Share on other sites
1 answer to this question
Recommended Posts