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:
coderkun 2014-05-15 18:17:51 +02:00
commit ea828a88dc
10 changed files with 211 additions and 209 deletions

View file

@ -36,9 +36,9 @@
<div class="qgprogress cf">
<p class="xpinfo">Fortschritt:</p>
<div class="xpbar">
<span style="width:<?=round($group['character_xps']/$group['xps']*100)?>%"></span>
<span style="width:<?=round($group['character_xps']/$group['achievable_xps']*100)?>%"></span>
</div>
<p class="xpnumeric"><?=$group['character_xps']?> / <?=$group['xps']?> XP</p>
<p class="xpnumeric"><?=$group['character_xps']?> / <?=$group['achievable_xps']?> XP</p>
</div>
<?php foreach($group['relatedQuestgroups'] as &$relatedGroup) : ?>
<div class="qghidden">