void ApplyCooldownSpeedBonus(int difference, PerkCollection perks)
 {
     if (perks.CooldownSpeed.DesiredLevel == perks.CooldownSpeed.MaxLevel)
     {
         PerkCollection.Loadout.Stats.UpdateCooldownSpeed("Core", 20 * difference);
     }
 }
 void ApplyAdrenalineRushBonus(int difference, PerkCollection perks)
 {
     if (perks.AdrenalineRush.DesiredLevel == perks.AdrenalineRush.MaxLevel && PerkCollection.Loadout.CurrentUnit.UnitData.Type > 0)
     {
         var superRushMultipler = 1 + perks.SuperRush.DesiredLevel * 1.0 / perks.SuperRush.MaxLevel;
         PerkCollection.Loadout.Stats.CriticalChance += 5 * superRushMultipler * difference;
     }
 }
 void ApplyTrifectaBonus(int difference, PerkCollection perks)
 {
     if (perks.TrifectaPower.DesiredLevel == perks.TrifectaPower.MaxLevel && PerkCollection.Loadout.CurrentUnit.UnitRank >= UnitRankType.Z)
     {
         PerkCollection.Loadout.Stats.Attack += 15 * difference;
         PerkCollection.Loadout.Stats.UpdateAttackSpeed("Trifecta", 15 * difference);
         PerkCollection.Loadout.Stats.UpdateHealth("Core", 15 * difference);
         PerkCollection.Loadout.Stats.UpdateShields("Core", 15 * difference);
     }
 }