diff --git a/img/logo_5.png b/img/logo_5.png index 63c085f..858989a 100755 Binary files a/img/logo_5.png and b/img/logo_5.png differ diff --git a/img/logo_6.png b/img/logo_6.png index 50ccb9a..a9b599e 100755 Binary files a/img/logo_6.png and b/img/logo_6.png differ diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/enemy/Loup Garrou.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/enemy/Loup Garrou.xml deleted file mode 100755 index f9a63f4..0000000 --- a/medias/c0f08ae603e364cb554fe71c9fc94ffd/enemy/Loup Garrou.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - Loup Garrou - 0 - 10 - 0 - 0 - - 0 - 0 - 0 - 0 - 0 - 0 - - default - ... - 0 - - diff --git a/medias/default/enemy.xml b/medias/default/enemy.xml new file mode 100755 index 0000000..5874687 --- /dev/null +++ b/medias/default/enemy.xml @@ -0,0 +1,9 @@ + + + + enemy + 3 + http://wiki.ecomonde.land/lib/exe/fetch.php?media=wiki:loup_garrou.jpg + http://wiki.ecomonde.land/doku.php?id=wiki:ennemies:loups_garrous + + diff --git a/play/action.php b/play/action.php index 9d3ad3a..cdcb1cd 100755 --- a/play/action.php +++ b/play/action.php @@ -39,16 +39,25 @@ if (isset($_GET['xp_plusplus']) && $xml->entry->xp<99989) { $xml->entry->xp+=10; } -if (isset($_GET['money_moins']) && $xml->entry->money>0) { - $xml->entry->money--; +if (isset($_GET['xp_moinsmoins']) && $xml->entry->xp>9) { + $xml->entry->xp-=10; } +if (isset($_GET['xp_reset'])) { + $xml->entry->xp=0; +} + + if (isset($_GET['money_plus']) && $xml->entry->money<99999) { $xml->entry->money+=1; } -if (isset($_GET['xp_moinsmoins']) && $xml->entry->xp>9) { - $xml->entry->xp-=10; +if (isset($_GET['money_moins']) && $xml->entry->money>0) { + $xml->entry->money--; +} + +if (isset($_GET['money_reset'])) { + $xml->entry->money=0; } if (isset($_GET['eco_verte_plus']) && $xml->entry->ecos->verte<5) { @@ -118,6 +127,10 @@ if (isset($_GET['gift_moins']) && $xml->entry->gift>0) { $xml->entry->gift--; } +if (isset($_GET['gift_reset'])) { + $xml->entry->gift=0; +} + $xml->asXml('../medias/'.$hash.'/'.$nom_modif.'.xml'); header("location: index.php"); ?> diff --git a/play/action_enemy.php b/play/action_enemy.php index 3e1296f..497cff7 100644 --- a/play/action_enemy.php +++ b/play/action_enemy.php @@ -11,7 +11,7 @@ if (isset($_GET['entry'])) { $xml = simplexml_load_file('../medias/'.$hash.'/enemy/'.$nom_modif.'.xml'); -if (isset($_GET['hp_plus']) && $xml->entry->hp<20) { +if (isset($_GET['hp_plus']) && $xml->entry->hp<3) { $xml->entry->hp++; } diff --git a/play/del_enemy.php b/play/del_enemy.php new file mode 100644 index 0000000..8f2ca86 --- /dev/null +++ b/play/del_enemy.php @@ -0,0 +1,5 @@ + diff --git a/play/enemy.php b/play/enemy.php index b9d2e2a..501ffce 100644 --- a/play/enemy.php +++ b/play/enemy.php @@ -17,20 +17,32 @@ foreach($xml->entry as $entry) {
nom; ?>
+
-
-
-

  

- hp; ?> +
+ enemy
-
diff --git a/play/gamers.php b/play/gamers.php index 502164d..664da08 100755 --- a/play/gamers.php +++ b/play/gamers.php @@ -34,7 +34,7 @@ foreach($xml->entry as $entry) { level) - { + { case 0: $hp_max+=0; break; @@ -54,18 +54,18 @@ foreach($xml->entry as $entry) {

 hp; ?>/

-

 xp; ?>

+

 xp; ?> 

- nom, "-"); ?>nom, "+"); ?> + nom, ''); ?>nom, "-"); ?>nom, "+"); ?>
nom, "-"); ?>nom, "+"); ?>
- nom, "--"); ?>nom, "-"); ?>nom, "+"); ?>nom, "++"); ?> + nom, ''); ?>nom, "--"); ?>nom, "-"); ?>nom, "+"); ?>nom, "++"); ?>
@@ -164,7 +164,7 @@ foreach($xml->entry as $entry) {

 gift; ?>

- nom, "-"); ?>nom, "+"); ?> + nom, ""); ?>nom, "-"); ?>nom, "+"); ?>
- \ No newline at end of file +