From 12e212ea9ca6d05858fa55d1c488f0e09ba82705 Mon Sep 17 00:00:00 2001 From: heuzef Date: Sat, 30 Aug 2014 19:55:38 +0200 Subject: [PATCH] ajout hp max --- medias/c0f08ae603e364cb554fe71c9fc94ffd/Derpy.xml | 2 +- .../c0f08ae603e364cb554fe71c9fc94ffd/zycheron.xml | 2 +- play/gamers.php | 22 +++++++++++++++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/Derpy.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/Derpy.xml index 72a6ce4..8a66f79 100644 --- a/medias/c0f08ae603e364cb554fe71c9fc94ffd/Derpy.xml +++ b/medias/c0f08ae603e364cb554fe71c9fc94ffd/Derpy.xml @@ -2,7 +2,7 @@ Derpy - 0 + 2 10 50 999 diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/zycheron.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/zycheron.xml index f2c3d62..45cc353 100644 --- a/medias/c0f08ae603e364cb554fe71c9fc94ffd/zycheron.xml +++ b/medias/c0f08ae603e364cb554fe71c9fc94ffd/zycheron.xml @@ -2,7 +2,7 @@ zycheron - 0 + 1 10 0 0 diff --git a/play/gamers.php b/play/gamers.php index acbb46d..0a4396c 100755 --- a/play/gamers.php +++ b/play/gamers.php @@ -31,7 +31,27 @@ foreach($xml->entry as $entry) {

 money; ?>

-

 hp; ?>

+ 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 "?"; + } + ?> +

 hp; ?>/

 xp; ?>