char_overview.php -> Buffs der Items hinzugefügt (HP,MP)

char.inc.php -> Buffs für die Kämpfe hinzugefügt (HP,MP)
clan_fights.inc.php -> getChar in getCharWithBuffs geändert, somit sind nun auch die Items im CF verfügbar.
main
elfenland 13 years ago
parent 20e1e49c67
commit 177dd0421d

@ -52,7 +52,7 @@ foreach($chars as $my_charz){
$temproom="<br><a href=index.php?as=clan/c_ware&char_id=$my_charz[id] id=popup> Trainingsraum: ".$clanroom['name']."</a>";
$hp = "HP: ".$hptemp['0']." / ".$hptemp['1'];
$hp = "HP: ".$hptemp['0']." / ".$hptemp['1'].' (+'.$char1_buffs['hp'].')';;
if($my_charz['status'] == "Schatz Suche")
$statustemp = "Schatz%20Suche";
else
@ -69,7 +69,7 @@ foreach($chars as $my_charz){
$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'];
$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'];

@ -130,6 +130,10 @@ function getChar2($charid) {
function getCharWithBuffs($charid, $buffer_enabled = true){
$char = getChar($charid, $buffer_enabled);
$char_buffs = getCharBuffs($char['kampf_item']);
$valueshp = explode(',', $char['hp']);
$char['hp'] = ($valueshp[0] + $char_buffs['hp']). ','.($valueshp[1] + $char_buffs['hp']);
$valuesmp = explode(',', $char['mp']);
$char['mp'] = ($valuesmp[0] + $char_buffs['mp']). ','.($valuesmp[1] + $char_buffs['mp']);
$char['starke'] += $char_buffs['starke'];
$char['verteidigung'] += $char_buffs['verteidigung'];
$char['speed'] += $char_buffs['speed'];

@ -788,8 +788,8 @@ function calculateChallenge($clan_challenge_id) {
echo 'Could not execute QUERY : ' .$sql .'<br>';
foreach ($clan_char_ids as $slot => $char_id) {
addParticipant($event_id, getChar($char_id));
$clan_chars[$clan_id][$slot] = getChar($char_id);
addParticipant($event_id, getCharWithBuffs($char_id));
$clan_chars[$clan_id][$slot] = getCharWithBuffs($char_id);
}
}

Loading…
Cancel
Save