From 8154c070c6c38aa1e7907d913e4fa359ef18beb6 Mon Sep 17 00:00:00 2001 From: hecht Date: Mon, 21 Nov 2011 15:42:16 +0000 Subject: [PATCH] display the attack names :) --- ag/include/attacke.inc.php | 23 +++++++++++++++++++++++ ag/include/kampf_anzeige.inc.php | 20 ++++++++++++++++++-- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 ag/include/attacke.inc.php diff --git a/ag/include/attacke.inc.php b/ag/include/attacke.inc.php new file mode 100644 index 0000000..8921a4f --- /dev/null +++ b/ag/include/attacke.inc.php @@ -0,0 +1,23 @@ + 'Normaler Kick'); + } + + if(!isset($GLOBALS['attack_buffered'][$attack_id])) { + $GLOBALS['attack_buffered'][$attack_id] = mysql_fetch_assoc(mysql_query('SELECT * FROM attacken WHERE id = ' . $attack_id)); + } + return $GLOBALS['attack_buffered'][$attack_id]; +} + +?> \ No newline at end of file diff --git a/ag/include/kampf_anzeige.inc.php b/ag/include/kampf_anzeige.inc.php index 05047e1..9779aee 100644 --- a/ag/include/kampf_anzeige.inc.php +++ b/ag/include/kampf_anzeige.inc.php @@ -7,6 +7,8 @@ * */ +include_once(ROOT_PATH.'/include/attacke.inc.php'); + function displayCharTable($charbild, $charname, $starke, $ver, $speed, $ausdauer, $glueck = -1, $hp_akt, $hp_max, $mp_akt, $mp_max ){ ?> @@ -51,14 +53,28 @@ function displayAttacks($attacke1, $schaden1, $attacke2, $schaden2){ Technik: - +

Schaden: Technik: - +

Schaden: