From 3b9447397a37a63c8abb23e2c231221c0d9c81ad Mon Sep 17 00:00:00 2001 From: radiskull Date: Wed, 18 Jan 2012 20:25:51 +0000 Subject: [PATCH] =?UTF-8?q?Anzeige=20von=20HP/MP-Bug=20behoben=20Boni=20wi?= =?UTF-8?q?rd=20nun=20auch=20im=20Verwaltungsmen=C3=BC=20angezeigt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ag/char_overview.php | 23 +++++++++++++---------- ag/char_profil.php | 6 +++--- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/ag/char_overview.php b/ag/char_overview.php index 1172f73..cbc8f95 100644 --- a/ag/char_overview.php +++ b/ag/char_overview.php @@ -52,25 +52,28 @@ foreach($chars as $my_charz){ $temproom="
Trainingsraum: ".$clanroom['name'].""; - $hp = "HP: ".$hptemp['0']." / ".$hptemp['1'].' (+'.$char1_buffs['hp'].')';; + if($my_charz['status'] == "Schatz Suche") $statustemp = "Schatz%20Suche"; else $statustemp = $my_charz['status']; - + if($my_charz['kampf_item'] != NULL && $my_charz['kampf_item'] != ',,,,'){ // echo 'Problematic Entry = '.$chara_1['kampf_item'].'
'; $char1_buffs = mysql_fetch_assoc(mysql_query('SELECT sum(i.hp) as hp, sum(i.mp) as mp, sum(i.starke) as starke, sum(i.verteidigung) as verteidigung, sum(i.speed) as speed FROM ware w LEFT JOIN item i ON(i.id=w.item_id) WHERE w.id IN (' . $my_charz['kampf_item'] . ')')); } - $c_starke = $char1_buffs['starke']==0?$my_charz['starke']:($my_charz['starke']).' (+'.$char1_buffs['starke'].')'; - $c_verteidigung = $char1_buffs['verteidigung']==0?$my_charz['verteidigung']:($my_charz['verteidigung']).' (+'.$char1_buffs['verteidigung'].')'; - $c_speed = $char1_buffs['speed']==0?$my_charz['speed']:($my_charz['speed']).' (+'.$char1_buffs['speed'].')'; - $c_ausdauer = $char1_buffs['ausdauer']==0?$my_charz['ausdauer']:($my_charz['ausdauer']).' (+'.$char1_buffs['ausdauer'].')'; - $c_glueck = $char1_buffs['glueck']==0?$my_charz['glueck']:($my_charz['glueck']).' (+'.$char1_buffs['glueck'].')'; - - $mp = "MP: ".$mptemp['0']." / ".$mptemp['1'].' (+'.$char1_buffs['mp'].')';; - $exp = "Exp: ".$exptemp['0']." / ".$exptemp['1']; + $c_starke = ($char1_buffs['starke']==0)?$my_charz['starke']:($my_charz['starke']).' (+'.$char1_buffs['starke'].')'; + $c_verteidigung = ($char1_buffs['verteidigung']==0)?$my_charz['verteidigung']:($my_charz['verteidigung']).' (+'.$char1_buffs['verteidigung'].')'; + $c_speed = ($char1_buffs['speed']==0)?$my_charz['speed']:($my_charz['speed']).' (+'.$char1_buffs['speed'].')'; + $c_ausdauer = ($char1_buffs['ausdauer']==0)?$my_charz['ausdauer']:($my_charz['ausdauer']).' (+'.$char1_buffs['ausdauer'].')'; + $c_glueck = ($char1_buffs['glueck']==0)?$my_charz['glueck']:($my_charz['glueck']).' (+'.$char1_buffs['glueck'].')'; + + + $hp = ($char1_buffs['hp']==0)?("HP: ".$hptemp[0]." / ".$hptemp[1]):("HP: ".$hptemp[0]." / ".$hptemp[1].' (+'.$char1_buffs['hp'].')'); + $mp = ($char1_buffs['mp']==0)?("MP: ".$mptemp[0]." / ".$mptemp[1]):("MP: ".$mptemp[0]." / ".$mptemp[1].' (+'.$char1_buffs['mp'].')'); + //$mp = "MP: ".$mptemp[0]." / ".$mptemp[1].' (+'.$char1_buffs['mp'].')'; + $exp = "Exp: ".$exptemp[0]." / ".$exptemp[1]; if($my_charz['status'] == 'Frei' ){ $temp = 'Status: '.$my_charz['status']; } elseif($my_charz['status'] == 'Angemeldet' OR $my_charz['status'] == 'Kampf erstellt') { diff --git a/ag/char_profil.php b/ag/char_profil.php index aae8110..24e8957 100644 --- a/ag/char_profil.php +++ b/ag/char_profil.php @@ -123,14 +123,14 @@ function stelledar($char_id,$user_ida,$name) { HP - -   + +   MP -   +