Exemplo n.º 1
0
 private static void ShotResultAdvantageModification(ref ShotResultProbabilities probabilities, int playerShooting, Advantage advantage)
 {
     if (advantage.Player == playerShooting)
     {
         probabilities.AddCrit(ADVANTAGE_CRIT * advantage.Amount);
     }
     else
     {
         probabilities.AddFail(DISADVANTAGE_FAIL * advantage.Amount);
     }
 }
Exemplo n.º 2
0
 private static void ShotResultAttributesModification(ref ShotResultProbabilities probabilities, PlayerMatchInstance playerShooting, PlayerMatchInstance playerDefending, ShotType shotType, ShotType previousShotType)
 {
     probabilities.AddCrit(GetCritFromAttribute(playerShooting, playerDefending, shotType, previousShotType));
     //You calculate the difference between the atk of the atking player and the def of the defing player
 }