|
|
@@ -42,532 +42,533 @@
|
|
|
<?php
|
|
|
include __DIR__ . "/inc/header.php";
|
|
|
?>
|
|
|
- <section id='monster' class='content'>
|
|
|
+ <aside>
|
|
|
<h2>
|
|
|
- <span>
|
|
|
- <?=$page->unit->title?>
|
|
|
- </span>
|
|
|
+ <?=$page->unit->title?>
|
|
|
</h2>
|
|
|
- <article id='profile'>
|
|
|
- <div id='monster_info'>
|
|
|
- <div class='monster_panel'>
|
|
|
- <?=HTML::unit_panel($page->unit)?>
|
|
|
- </div>
|
|
|
+ <div id='monster_info'>
|
|
|
+ <div class='monster_panel'>
|
|
|
+ <?=HTML::unit_panel($page->unit)?>
|
|
|
+ </div>
|
|
|
<?php
|
|
|
- if ($page->unit->experience_level != 0){
|
|
|
- $exp_pct = ceil($page->unit->exp_gained * 100 / $page->unit->experience_level);
|
|
|
- $exp_txt = $page->unit->exp_gained . " / " . $page->unit->experience_level;
|
|
|
- }
|
|
|
- else{
|
|
|
- $exp_pct = 100;
|
|
|
- $exp_txt = "MAX";
|
|
|
- }
|
|
|
- $now = time();
|
|
|
- //$datediff = $now - $page->unit->create_time->getTimestamp();
|
|
|
- $datediff = $now - strtotime($page->unit->create_time->format('Y-m-d H:i:s'));
|
|
|
- $datediff = floor($datediff / (60 * 60 * 24));
|
|
|
+ if ($page->unit->experience_level != 0){
|
|
|
+ $exp_pct = ceil($page->unit->exp_gained * 100 / $page->unit->experience_level);
|
|
|
+ $exp_txt = $page->unit->exp_gained . " / " . $page->unit->experience_level;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ $exp_pct = 100;
|
|
|
+ $exp_txt = "MAX";
|
|
|
+ }
|
|
|
+ $now = time();
|
|
|
+ //$datediff = $now - $page->unit->create_time->getTimestamp();
|
|
|
+ $datediff = $now - strtotime($page->unit->create_time->format('Y-m-d H:i:s'));
|
|
|
+ $datediff = floor($datediff / (60 * 60 * 24));
|
|
|
?>
|
|
|
- <div id='monster_details'>
|
|
|
- <div id='exp'>
|
|
|
- <span id='exp_bar' style='width:<?=$exp_pct?>%'></span>
|
|
|
- </span>
|
|
|
- <span id='exp_text'>
|
|
|
- <?=$exp_txt?>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- Obtained on <?=$page->unit->create_time->format('Y-m-d')?> (<?=$datediff?> days ago)<!-- from <?=$page->unit->source->name?> TODO SOurce name, days ago -->
|
|
|
+ <div id='monster_details'>
|
|
|
+ <div id='exp'>
|
|
|
+ <span id='exp_bar' style='width:<?=$exp_pct?>%'></span>
|
|
|
+ </span>
|
|
|
+ <span id='exp_text'>
|
|
|
+ <?=$exp_txt?>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ Obtained on <?=$page->unit->create_time->format('Y-m-d')?> (<?=$datediff?> days ago)<!-- from <?=$page->unit->source->name?> TODO SOurce name, days ago -->
|
|
|
<?php
|
|
|
- if (sizeof($page->unit->teams) > 0){
|
|
|
+ if (sizeof($page->unit->teams) > 0){
|
|
|
?>
|
|
|
- <div id='teams'>
|
|
|
- <h4>
|
|
|
- Teams:
|
|
|
- </h4>
|
|
|
- <ul>
|
|
|
+ <div id='teams'>
|
|
|
+ <h4>
|
|
|
+ Teams:
|
|
|
+ </h4>
|
|
|
+ <ul>
|
|
|
<?php
|
|
|
- foreach($page->unit->teams as $team){
|
|
|
+ foreach($page->unit->teams as $team){
|
|
|
?>
|
|
|
- <li>
|
|
|
- <a target='blank' href='/<?=$UID?>/teams/<?=$team->id?>'>
|
|
|
- <?=$team->name?>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
+ <li>
|
|
|
+ <a target='blank' href='/<?=$UID?>/teams/<?=$team->id?>'>
|
|
|
+ <?=$team->name?>
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
<?php
|
|
|
- }
|
|
|
+ }
|
|
|
?>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
<?php
|
|
|
- }
|
|
|
+ }
|
|
|
?>
|
|
|
- </div>
|
|
|
+ <a id='optimize' class='a_button' href='/<?=$UID?>/optimizer/<?=$page->unit->id?>'>
|
|
|
+ Optimize
|
|
|
+ </a>
|
|
|
</div>
|
|
|
- <table id='stats'>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- Stats
|
|
|
- </th>
|
|
|
- <th>
|
|
|
- Base
|
|
|
- </th>
|
|
|
- <th>
|
|
|
- Runes
|
|
|
- </th>
|
|
|
- <th>
|
|
|
- Artifacts
|
|
|
- </th>
|
|
|
- <th>
|
|
|
- Buildings
|
|
|
- </th>
|
|
|
- <th>
|
|
|
- Total
|
|
|
- </th>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- ATK
|
|
|
- </th>
|
|
|
- <td class='base'>
|
|
|
- <?=$page->unit->attack?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->rune_attack?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->artifact_attack?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->building_attack?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='total'>
|
|
|
- <?=$page->unit->total_attack?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- DEF
|
|
|
- </th>
|
|
|
- <td class='base'>
|
|
|
- <?=$page->unit->defense?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->rune_defense?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->artifact_defense?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->building_defense?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='total'>
|
|
|
- <?=$page->unit->total_defense?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- HP
|
|
|
- </th>
|
|
|
- <td class='base'>
|
|
|
- <?=$page->unit->hp?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->rune_hp?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->artifact_hp?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->building_hp?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='total'>
|
|
|
- <?=$page->unit->total_hp?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- SPD
|
|
|
- </th>
|
|
|
- <td class='base'>
|
|
|
- <?=$page->unit->speed?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->rune_speed?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->artifact_speed?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->building_speed?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- <td class='total'>
|
|
|
- <?=$page->unit->total_speed?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- CRR
|
|
|
- </th>
|
|
|
- <td class='base'>
|
|
|
- <?=$page->unit->crit_rate?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->rune_crit_rate?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->artifact_crit_rate?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->building_crit_rate?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='total'>
|
|
|
- <?=$page->unit->total_crit_rate?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- CRD
|
|
|
- </th>
|
|
|
- <td class='base'>
|
|
|
- <?=$page->unit->crit_damage?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->rune_crit_damage?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->artifact_crit_damage?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->building_crit_damage?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='total'>
|
|
|
- <?=$page->unit->total_crit_damage?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- ACC
|
|
|
- </th>
|
|
|
- <td class='base'>
|
|
|
- <?=$page->unit->accuracy?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->rune_accuracy?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->artifact_accuracy?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->building_accuracy?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='total'>
|
|
|
- <?=$page->unit->total_accuracy?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- RES
|
|
|
- </th>
|
|
|
- <td class='base'>
|
|
|
- <?=$page->unit->resistance?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->rune_resistance?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->artifact_resistance?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='extra'>
|
|
|
- +<?=$page->unit->building_resistance?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- <td class='total'>
|
|
|
- <?=$page->unit->total_resistance?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th colspan='5'>
|
|
|
- Effective HP
|
|
|
- </th>
|
|
|
- <td class='total'>
|
|
|
- <?=$page->unit->effective_hp?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th colspan='5'>
|
|
|
- Effective DMG
|
|
|
- </th>
|
|
|
- <td class='total'>
|
|
|
- <?=$page->unit->effective_dmg?>
|
|
|
- <span class='percent'> </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- <table id='skills'>
|
|
|
- <tr>
|
|
|
- <th colspan='4'>
|
|
|
- Skills
|
|
|
- </th>
|
|
|
- <tr/>
|
|
|
+ </div>
|
|
|
+ </aside>
|
|
|
+ <main>
|
|
|
+ <section id='monster' class='content'>
|
|
|
+ <h2>
|
|
|
+ <?=$page->unit->title?>
|
|
|
+ </h2>
|
|
|
+ <article id='stats'>
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <th>
|
|
|
+ Stats
|
|
|
+ </th>
|
|
|
+ <th>
|
|
|
+ Base
|
|
|
+ </th>
|
|
|
+ <th>
|
|
|
+ Runes
|
|
|
+ </th>
|
|
|
+ <th>
|
|
|
+ Artifacts
|
|
|
+ </th>
|
|
|
+ <th>
|
|
|
+ Buildings
|
|
|
+ </th>
|
|
|
+ <th>
|
|
|
+ Total
|
|
|
+ </th>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>
|
|
|
+ ATK
|
|
|
+ </th>
|
|
|
+ <td class='base'>
|
|
|
+ <?=$page->unit->attack?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->rune_attack?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->artifact_attack?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->building_attack?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='total'>
|
|
|
+ <?=$page->unit->total_attack?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>
|
|
|
+ DEF
|
|
|
+ </th>
|
|
|
+ <td class='base'>
|
|
|
+ <?=$page->unit->defense?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->rune_defense?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->artifact_defense?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->building_defense?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='total'>
|
|
|
+ <?=$page->unit->total_defense?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>
|
|
|
+ HP
|
|
|
+ </th>
|
|
|
+ <td class='base'>
|
|
|
+ <?=$page->unit->hp?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->rune_hp?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->artifact_hp?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->building_hp?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='total'>
|
|
|
+ <?=$page->unit->total_hp?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>
|
|
|
+ SPD
|
|
|
+ </th>
|
|
|
+ <td class='base'>
|
|
|
+ <?=$page->unit->speed?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->rune_speed?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->artifact_speed?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->building_speed?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ <td class='total'>
|
|
|
+ <?=$page->unit->total_speed?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>
|
|
|
+ CRR
|
|
|
+ </th>
|
|
|
+ <td class='base'>
|
|
|
+ <?=$page->unit->crit_rate?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->rune_crit_rate?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->artifact_crit_rate?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->building_crit_rate?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='total'>
|
|
|
+ <?=$page->unit->total_crit_rate?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>
|
|
|
+ CRD
|
|
|
+ </th>
|
|
|
+ <td class='base'>
|
|
|
+ <?=$page->unit->crit_damage?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->rune_crit_damage?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->artifact_crit_damage?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->building_crit_damage?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='total'>
|
|
|
+ <?=$page->unit->total_crit_damage?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>
|
|
|
+ ACC
|
|
|
+ </th>
|
|
|
+ <td class='base'>
|
|
|
+ <?=$page->unit->accuracy?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->rune_accuracy?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->artifact_accuracy?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->building_accuracy?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='total'>
|
|
|
+ <?=$page->unit->total_accuracy?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>
|
|
|
+ RES
|
|
|
+ </th>
|
|
|
+ <td class='base'>
|
|
|
+ <?=$page->unit->resistance?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->rune_resistance?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->artifact_resistance?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='extra'>
|
|
|
+ +<?=$page->unit->building_resistance?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ <td class='total'>
|
|
|
+ <?=$page->unit->total_resistance?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th colspan='5'>
|
|
|
+ Effective HP
|
|
|
+ </th>
|
|
|
+ <td class='total'>
|
|
|
+ <?=$page->unit->effective_hp?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th colspan='5'>
|
|
|
+ Effective DMG
|
|
|
+ </th>
|
|
|
+ <td class='total'>
|
|
|
+ <?=$page->unit->effective_dmg?>
|
|
|
+ <span class='percent'> </span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </article>
|
|
|
+ <article id='artifacts'>
|
|
|
+ <?=HTML::artifact_table($page->unit->artifact_type)?>
|
|
|
+ <?=HTML::artifact_table($page->unit->artifact_element)?>
|
|
|
+ </article>
|
|
|
+ <article id='runes'>
|
|
|
<?php
|
|
|
- if ($page->unit->unit->leader_skill){
|
|
|
+ $total_efficiency = 0;
|
|
|
+ $total_max_efficiency = 0;
|
|
|
+ $total_reached_efficiency = 0;
|
|
|
+ $total_level = 0;
|
|
|
+ $total_stars = 0;
|
|
|
+ $total_value = 0;
|
|
|
+ $total_runes = 0;
|
|
|
+ $show_list = [6, 1, 2, 5, 4, 3];
|
|
|
+ //foreach ($page->unit->rune as $rune){
|
|
|
+ foreach ($show_list as $i){
|
|
|
+ $rune = $page->unit->rune[$i - 1];
|
|
|
+ $total_efficiency += $rune->efficiency;
|
|
|
+ $total_max_efficiency += $rune->max_efficiency;
|
|
|
+ $total_reached_efficiency += ($rune->efficiency * 100 / $rune->max_efficiency);
|
|
|
+ $total_level += $rune->level;
|
|
|
+ $total_stars += $rune->stars;
|
|
|
+ $total_value += $rune->value;
|
|
|
+ $total_runes ++;
|
|
|
?>
|
|
|
+ <?=HTML::rune_table($rune)?>
|
|
|
+<?php
|
|
|
+ }
|
|
|
+?>
|
|
|
+ <!--<table id='table_averages'>
|
|
|
+ <tr>
|
|
|
+ <td class='title'>
|
|
|
+ Avg. level:
|
|
|
+ </td>
|
|
|
+ <td class='value'>
|
|
|
+ <?=number_format($total_level / $total_runes, 2)?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='title'>
|
|
|
+ Avg. stars:
|
|
|
+ </td>
|
|
|
+ <td class='value'>
|
|
|
+ <?=number_format($total_stars / $total_runes, 2)?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='title'>
|
|
|
+ Avg. value:
|
|
|
+ </td>
|
|
|
+ <td class='value'>
|
|
|
+ <?=number_format($total_value / $total_runes, 2, '.', '')?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='title'>
|
|
|
+ Total value:
|
|
|
+ </td>
|
|
|
+ <td class='value'>
|
|
|
+ <?=$total_value?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='title'>
|
|
|
+ Avg. efficiency:
|
|
|
+ </td>
|
|
|
+ <td class='value'>
|
|
|
+ <?=number_format($total_efficiency / $total_runes, 2)?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='title'>
|
|
|
+ Avg. max. efficiency:
|
|
|
+ </td>
|
|
|
+ <td class='value'>
|
|
|
+ <?=number_format($total_max_efficiency / $total_runes, 2)?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
<tr>
|
|
|
- <td class='skill_img'>
|
|
|
- <img src='<?=$page->unit->unit->leader_skill->get_image()?>'/>
|
|
|
+ <td class='title'>
|
|
|
+ Avg. reached efficiency:
|
|
|
</td>
|
|
|
- <td colspan='3' class='skill_text'>
|
|
|
- <h4>
|
|
|
- Leader Skill
|
|
|
- </h4>
|
|
|
- <p>
|
|
|
- <?=$page->unit->unit->leader_skill->create_description()?>
|
|
|
- </p>
|
|
|
+ <td class='value'>
|
|
|
+ <?=number_format($total_reached_efficiency / $total_runes, 2)?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
+ </table>-->
|
|
|
+ </article>
|
|
|
+ <article id='skills'>
|
|
|
+ <table id='skills'>
|
|
|
+ <tr>
|
|
|
+ <th colspan='4'>
|
|
|
+ Skills
|
|
|
+ </th>
|
|
|
+ <tr/>
|
|
|
<?php
|
|
|
- }
|
|
|
- $skill_num = 0;
|
|
|
- $absolute_level = 0;
|
|
|
- $absolute_max_level = 0;
|
|
|
- $ponderated_level = 0;
|
|
|
- $ponderated_max_level = 0;
|
|
|
- foreach ($page->unit->unit->skill as $skill){
|
|
|
- if ($skill->max_level > 1){
|
|
|
- $absolute_max_level += $skill->max_level - 1;
|
|
|
- }
|
|
|
- $cur_lvl = $page->unit->skill_levels[$skill_num];
|
|
|
+ if ($page->unit->unit->leader_skill){
|
|
|
+?>
|
|
|
+ <tr>
|
|
|
+ <td class='skill_img'>
|
|
|
+ <img src='<?=$page->unit->unit->leader_skill->get_image()?>'/>
|
|
|
+ </td>
|
|
|
+ <td colspan='3' class='skill_text'>
|
|
|
+ <h4>
|
|
|
+ Leader Skill
|
|
|
+ </h4>
|
|
|
+ <p>
|
|
|
+ <?=$page->unit->unit->leader_skill->create_description()?>
|
|
|
+ </p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+<?php
|
|
|
+ }
|
|
|
+ $skill_num = 0;
|
|
|
+ $absolute_level = 0;
|
|
|
+ $absolute_max_level = 0;
|
|
|
+ $ponderated_level = 0;
|
|
|
+ $ponderated_max_level = 0;
|
|
|
+ foreach ($page->unit->unit->skill as $skill){
|
|
|
if ($skill->max_level > 1){
|
|
|
- $absolute_level += $cur_lvl - 1;
|
|
|
- $ponderated_level += ($cur_lvl - 1) * (1 + ($skill_num / 2));
|
|
|
- $ponderated_max_level += ($skill->max_level - 1) * (1 + ($skill_num / 2));
|
|
|
- }
|
|
|
- $max_lvl = $skill->max_level;
|
|
|
- if ($max_lvl == $cur_lvl){
|
|
|
- $maxed = "maxed";
|
|
|
- }
|
|
|
- else{
|
|
|
- $maxed = "";
|
|
|
- }
|
|
|
+ $absolute_max_level += $skill->max_level - 1;
|
|
|
+ }
|
|
|
+ $cur_lvl = $page->unit->skill_levels[$skill_num];
|
|
|
+ if ($skill->max_level > 1){
|
|
|
+ $absolute_level += $cur_lvl - 1;
|
|
|
+ $ponderated_level += ($cur_lvl - 1) * (1 + ($skill_num / 2));
|
|
|
+ $ponderated_max_level += ($skill->max_level - 1) * (1 + ($skill_num / 2));
|
|
|
+ }
|
|
|
+ $max_lvl = $skill->max_level;
|
|
|
+ if ($max_lvl == $cur_lvl){
|
|
|
+ $maxed = "maxed";
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ $maxed = "";
|
|
|
+ }
|
|
|
?>
|
|
|
- <tr>
|
|
|
- <td class='skill_img'>
|
|
|
- <img src='<?=$skill->get_image()?>'/>
|
|
|
- <span class='skill_level <?=$maxed?>'>
|
|
|
- <?=$cur_lvl?>/<?=$max_lvl?>
|
|
|
- </span>
|
|
|
- </td>
|
|
|
- <td class='skill_text'>
|
|
|
- <h4>
|
|
|
- <?=$skill->name?>
|
|
|
- </h4>
|
|
|
- <p>
|
|
|
- <?=$skill->description?>
|
|
|
-  
|
|
|
- <span class='formula'>
|
|
|
- <?=$skill->multiplier_formula?>
|
|
|
+ <tr>
|
|
|
+ <td class='skill_img'>
|
|
|
+ <img src='<?=$skill->get_image()?>'/>
|
|
|
+ <span class='skill_level <?=$maxed?>'>
|
|
|
+ <?=$cur_lvl?>/<?=$max_lvl?>
|
|
|
</span>
|
|
|
- </p>
|
|
|
-
|
|
|
- <div class='effects'>
|
|
|
+ </td>
|
|
|
+ <td class='skill_text'>
|
|
|
+ <h4>
|
|
|
+ <?=$skill->name?>
|
|
|
+ </h4>
|
|
|
+ <p>
|
|
|
+ <?=$skill->description?>
|
|
|
+  
|
|
|
+ <span class='formula'>
|
|
|
+ <?=$skill->multiplier_formula?>
|
|
|
+ </span>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <div class='effects'>
|
|
|
<?php
|
|
|
- foreach ($skill->effect as $effect){
|
|
|
+ foreach ($skill->effect as $effect){
|
|
|
?>
|
|
|
- <img class='effect_img' title='<?=$effect->name?>' src='<?=$effect->get_image()?>'/>
|
|
|
+ <img class='effect_img' title='<?=$effect->name?>' src='<?=$effect->get_image()?>'/>
|
|
|
<?php
|
|
|
- }
|
|
|
+ }
|
|
|
?>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
<?php
|
|
|
- $cur_lvl = $page->unit->skill_levels[$skill_num];
|
|
|
+ $cur_lvl = $page->unit->skill_levels[$skill_num];
|
|
|
?>
|
|
|
- <td class='skill_ups'>
|
|
|
+ <td class='skill_ups'>
|
|
|
<?php
|
|
|
- if ($skill->max_level > 1){
|
|
|
+ if ($skill->max_level > 1){
|
|
|
?>
|
|
|
- <table>
|
|
|
+ <table>
|
|
|
<?php
|
|
|
- foreach ($skill->level as $level){
|
|
|
- if ($level->level > 1){
|
|
|
- $aquired = "";
|
|
|
- if ($level->level <= $cur_lvl){
|
|
|
- $aquired = "aquired";
|
|
|
- }
|
|
|
+ foreach ($skill->level as $level){
|
|
|
+ if ($level->level > 1){
|
|
|
+ $aquired = "";
|
|
|
+ if ($level->level <= $cur_lvl){
|
|
|
+ $aquired = "aquired";
|
|
|
+ }
|
|
|
?>
|
|
|
- <tr>
|
|
|
- <td class='level <?=$aquired?>'>
|
|
|
- Lv. <?=$level->level?>
|
|
|
- </td>
|
|
|
- <td class='upgrade <?=$aquired?>'>
|
|
|
- <?=$level->description?>
|
|
|
+ <tr>
|
|
|
+ <td class='level <?=$aquired?>'>
|
|
|
+ Lv. <?=$level->level?>
|
|
|
</td>
|
|
|
- </tr>
|
|
|
+ <td class='upgrade <?=$aquired?>'>
|
|
|
+ <?=$level->description?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
<?php
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
?>
|
|
|
- </table>
|
|
|
+ </table>
|
|
|
<?php
|
|
|
- }
|
|
|
- $skill_num ++;
|
|
|
-?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
-<?php
|
|
|
- }
|
|
|
-?>
|
|
|
- <tr>
|
|
|
- <td colspan='3' id='skill_averages'>
|
|
|
- Absolute skill-ups: <?=number_format($absolute_level * 100 / $absolute_max_level, 2)?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- <br/>
|
|
|
- Ponderated skill-ups: <?=number_format($ponderated_level * 100 / $ponderated_max_level, 2)?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </article> <!-- #profile -->
|
|
|
- </section>
|
|
|
- <section id='runes' class='content'>
|
|
|
- <h2>
|
|
|
- <span>
|
|
|
- Runes and Artifacts
|
|
|
- </span>
|
|
|
- </h2>
|
|
|
- <article>
|
|
|
- <?=HTML::artifact_table($page->unit->artifact_type)?>
|
|
|
- </article>
|
|
|
- <article>
|
|
|
- <?=HTML::artifact_table($page->unit->artifact_element)?>
|
|
|
- </article>
|
|
|
- <br class='mobile'/>
|
|
|
-<?php
|
|
|
- $total_efficiency = 0;
|
|
|
- $total_max_efficiency = 0;
|
|
|
- $total_reached_efficiency = 0;
|
|
|
- $total_level = 0;
|
|
|
- $total_stars = 0;
|
|
|
- $total_value = 0;
|
|
|
- $total_runes = 0;
|
|
|
- foreach ($page->unit->rune as $rune){
|
|
|
- $total_efficiency += $rune->efficiency;
|
|
|
- $total_max_efficiency += $rune->max_efficiency;
|
|
|
- $total_reached_efficiency += ($rune->efficiency * 100 / $rune->max_efficiency);
|
|
|
- $total_level += $rune->level;
|
|
|
- $total_stars += $rune->stars;
|
|
|
- $total_value += $rune->value;
|
|
|
- $total_runes ++;
|
|
|
+ }
|
|
|
+ $skill_num ++;
|
|
|
?>
|
|
|
- <article>
|
|
|
- <?=HTML::rune_table($rune)?>
|
|
|
- </article>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
<?php
|
|
|
- }
|
|
|
+ }
|
|
|
?>
|
|
|
- <article id='rune_averages'>
|
|
|
- <table id='table_averages'>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Avg. level:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=number_format($total_level / $total_runes, 2)?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Avg. stars:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=number_format($total_stars / $total_runes, 2)?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Avg. value:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=number_format($total_value / $total_runes, 2, '.', '')?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Total value:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$total_value?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Avg. efficiency:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=number_format($total_efficiency / $total_runes, 2)?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Avg. max. efficiency:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=number_format($total_max_efficiency / $total_runes, 2)?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Avg. reached efficiency:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=number_format($total_reached_efficiency / $total_runes, 2)?>
|
|
|
- <span class='percent'>%</span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </article>
|
|
|
- </section> <!-- runes -->
|
|
|
+ <!--<tr>
|
|
|
+ <td colspan='3' id='skill_averages'>
|
|
|
+ Absolute skill-ups: <?=number_format($absolute_level * 100 / $absolute_max_level, 2)?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ <br/>
|
|
|
+ Ponderated skill-ups: <?=number_format($ponderated_level * 100 / $ponderated_max_level, 2)?>
|
|
|
+ <span class='percent'>%</span>
|
|
|
+ </td>
|
|
|
+ </tr>-->
|
|
|
+ </table>
|
|
|
+ </article> <!-- #skills -->
|
|
|
+ </section>
|
|
|
+ </main>
|
|
|
|
|
|
<?php
|
|
|
include __DIR__ . "/inc/footer.php";
|