Example #1
0
 private void HealFP(InteractionHolder damageInfo)
 {
     //The entity doesn't recover FP if dead (TEST THIS) or if the damage dealt was 0 or less
     if (EntityEquipped.IsDead == false && damageInfo.TotalDamage > 0)
     {
         //Test for recovering FP
         if (UtilityGlobals.TestRandomCondition(FPRecoverChance) == true)
         {
             //Recover FP
             EntityEquipped.HealFP(FPRecoverAmount);
         }
     }
 }