|
|
@@ -31,7 +31,27 @@ foreach($xml->entry as $entry) { |
|
|
|
<h3><i class="ionicons ion-egg" style="color:brown;";></i> <strong><?php echo $entry->money; ?></strong></h3>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-4">
|
|
|
|
<h3><i class="ionicons ion-heart" style="color:red;";></i> <strong><?php echo $entry->hp; ?></strong></h3>
|
|
|
|
<?php
|
|
|
|
$hp_max="10";
|
|
|
|
switch ($entry->level)
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
$hp_max+=0;
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
$hp_max+=2;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
$hp_max+=5;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
$hp_max+=10;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
echo "?";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<h3><i class="ionicons ion-heart" style="color:red;";></i> <strong><?php echo $entry->hp; ?></strong><sub>/<?php echo $hp_max; ?></sub></h3>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-4">
|
|
|
|
<h3><i class="ionicons ion-flash" style="color:#FFD700;";></i> <strong><?php echo $entry->xp; ?></strong></h3>
|
|
|
|