Example #1
0
 public function getExperienceUsed()
 {
     $total = 0;
     $masteries = Service::getMasteryList();
     foreach ($masteries as $mastery) {
         $value = $this->{$mastery};
         while ($value > 0) {
             $total += Service::masteryCost($value);
             $value--;
         }
     }
     return $total;
 }