From c31c4544c4806656f1d4aa962f68458683f0472b Mon Sep 17 00:00:00 2001 From: hecht Date: Wed, 13 Aug 2014 20:31:39 +0000 Subject: [PATCH] Die Funktionen, die die array.php ersetzt haben wurden nun selbst ersetzt. --- ag/include/char.inc.php | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/ag/include/char.inc.php b/ag/include/char.inc.php index 2395927..fc91cbb 100644 --- a/ag/include/char.inc.php +++ b/ag/include/char.inc.php @@ -290,47 +290,12 @@ function getChoosenAttacks($charid){ function getCharRaceId($charid){ $char = getChar($charid); - $rassen_werte = array( - 'Mensch' => 1, ///0 - 'Saiyajin' => 2, ///1 - 'Dämon' => 3, ///2 - 'Mutant' => 4, ///3 - 'Cyborg' => 5, ///4 - 'Namekianer' => 6, ///5 - 'Pirat' => 7, ///6 - 'Shichibukai' => 8, ///7 - 'Kaioshin' => 9, ///8 - 'Schwertkämpfer' => 10,///9 - 'Grandline Maschine'=> 11,///10 - '01' => 12,///11 - 'Leaf Dorf' => 13,///12 - 'Sand Dorf' => 14,///13 - 'Sound Dorf' => 15///14 - ); - return $rassen_werte[$char['rasse']]; + return $char['rasse_a']['id']; } function getFusionRaceId($charid){ $char = getChar($charid); - $rassen_werte = array( - 'Mensch' => 1, ///0 - 'Saiyajin' => 2, ///1 - 'Dämon' => 3, ///2 - 'Mutant' => 4, ///3 - 'Cyborg' => 5, ///4 - 'Namekianer' => 6, ///5 - 'Pirat' => 7, ///6 - 'Shichibukai' => 8, ///7 - 'Kaioshin' => 9, ///8 - 'Schwertkämpfer' => 10,///9 - 'Grandline Maschine'=> 11,///10 - '01' => 12,///11 - 'Leaf Dorf' => 13,///12 - 'Sand Dorf' => 14,///13 - 'Sound Dorf' => 15///14 - ); - return $rassen_werte[$char['fusion_rasse']]; - + return $char['fusion_rasse_a']['id']; } /**