store the total amount of achievable XPs for a Questgroup in the database instead of calculating it every time (Issue #281)
This commit is contained in:
parent
53a968d644
commit
ea828a88dc
10 changed files with 211 additions and 209 deletions
|
|
@ -122,10 +122,8 @@
|
|||
{
|
||||
// Get Questgroups
|
||||
$questgroups = $this->Questgroups->getQuestgroupsForHierarchy($hierarchy['id']);
|
||||
foreach($questgroups as &$questgroup)
|
||||
{
|
||||
$data = $this->Questgroups->getCumulatedDataForQuestgroup($questgroup['id']);
|
||||
$xps += $data['xps'];
|
||||
foreach($questgroups as &$questgroup) {
|
||||
$xps += $questgroup['achievable_xps'];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue