|
|
@@ -19,6 +19,13 @@ if (isset($_GET['level_down']) && $xml->entry->level>0) { |
|
|
|
$xml->entry->level--;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isset($_GET['heal']) && $xml->entry->hp<20 && $xml->entry->ecos->verte>0) {
|
|
|
|
$lvl=$xml->entry->level;
|
|
|
|
$hp=$xml->entry->hp;
|
|
|
|
$xml->entry->hp=$hp+2+$lvl;
|
|
|
|
$xml->entry->ecos->verte--;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isset($_GET['hp_plus']) && $xml->entry->hp<20) {
|
|
|
|
$xml->entry->hp++;
|
|
|
|
}
|
|
|
|