rem useless function
This commit is contained in:
parent
f301ad8240
commit
a7a0aa2ee4
@ -214,31 +214,6 @@ class StatisticManager {
|
|||||||
return $playerStats;
|
return $playerStats;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets The Ranking of an Special Stat
|
|
||||||
*
|
|
||||||
* @param string $statName
|
|
||||||
*/
|
|
||||||
public function getAllSpecialPlayerStats(Player $player, $serverIndex = -1) {
|
|
||||||
$playerStats = array();
|
|
||||||
foreach($this->specialStats as $special){
|
|
||||||
switch($special){
|
|
||||||
case self::SPECIAL_STAT_KD_RATIO:
|
|
||||||
$kills = $this->getStatsRanking(StatisticCollector::STAT_ON_KILL);
|
|
||||||
$deaths = $this->getStatsRanking(StatisticCollector::STAT_ON_DEATH);
|
|
||||||
|
|
||||||
foreach($deaths as $key => $death) {
|
|
||||||
if ($death == 0 || !isset($kills[$key])) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$statsArray[$key] = intval($kills[$key]) / intval($death);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $playerStats;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inserts a Stat into the database
|
* Inserts a Stat into the database
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user