cleanup
This commit is contained in:
parent
c306011700
commit
4dabf459a8
@ -70,7 +70,7 @@ class StatisticCollector implements CallbackListener {
|
|||||||
//Initialize Settings
|
//Initialize Settings
|
||||||
$this->maniaControl->settingManager->initSetting($this, self::SETTING_COLLECT_STATS_ENABLED, true);
|
$this->maniaControl->settingManager->initSetting($this, self::SETTING_COLLECT_STATS_ENABLED, true);
|
||||||
$this->maniaControl->settingManager->initSetting($this, self::SETTING_COLLECT_STATS_MINPLAYERS, 2); //TODO just temp on 2
|
$this->maniaControl->settingManager->initSetting($this, self::SETTING_COLLECT_STATS_MINPLAYERS, 2); //TODO just temp on 2
|
||||||
$this->maniaControl->settingManager->initSetting($this, self::SETTING_ON_SHOOT_PRESTORE, 1);
|
$this->maniaControl->settingManager->initSetting($this, self::SETTING_ON_SHOOT_PRESTORE, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -202,8 +202,6 @@ class StatisticManager {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// var_dump($statsArray);
|
|
||||||
return $statsArray;
|
return $statsArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -336,7 +334,6 @@ class StatisticManager {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$playerStats[$stat->name] = array($stat, $hits / $shots);
|
$playerStats[$stat->name] = array($stat, $hits / $shots);
|
||||||
var_dump($hits, $shots, (float)($hits / $shots));
|
|
||||||
break;
|
break;
|
||||||
case self::SPECIAL_STAT_ROCKET_ACC:
|
case self::SPECIAL_STAT_ROCKET_ACC:
|
||||||
if (!isset($playerStats[StatisticCollector::STAT_ROCKET_HIT]) || !isset($playerStats[StatisticCollector::STAT_ROCKET_SHOT])) {
|
if (!isset($playerStats[StatisticCollector::STAT_ROCKET_HIT]) || !isset($playerStats[StatisticCollector::STAT_ROCKET_SHOT])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user