|
|
|
@ -18,12 +18,6 @@ defineIfNotDefined('GROUP_COLOR_DEVELOPER', 'orange');
|
|
|
|
|
defineIfNotDefined('GROUP_COLOR_CREATIVE', 'red');
|
|
|
|
|
defineIfNotDefined('GROUP_COLOR_MODERATOR', 'green');
|
|
|
|
|
|
|
|
|
|
defineIfNotDefined('ATTACK_COLOR_DMGATTACK', 'white');
|
|
|
|
|
defineIfNotDefined('ATTACK_COLOR_BUFF', 'blue');
|
|
|
|
|
defineIfNotDefined('ATTACK_COLOR_DEBUFF', 'orange');
|
|
|
|
|
defineIfNotDefined('ATTACK_COLOR_HEAL', 'green');
|
|
|
|
|
defineIfNotDefined('ATTACK_COLOR_SPECIAL', 'red');
|
|
|
|
|
|
|
|
|
|
// Diese Funktion muss in ein Darstellungspackage hinein und muss noch verlegt werden, Gestaltung in css-Datei
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -107,17 +101,11 @@ function generateAttackNameByID($attackid, $withColor = TRUE) {
|
|
|
|
|
$qry = mysql_query($sql);
|
|
|
|
|
$row = mysql_fetch_assoc($qry);
|
|
|
|
|
|
|
|
|
|
if($row['type'] == 'normal'){
|
|
|
|
|
$color = 'style="color:'.ATTACK_COLOR_DMGATTACK.'"';
|
|
|
|
|
} else if($row['type'] == 'kaioken' || $row['type'] == 'kaioken2' || $row['type'] == 'SSJ'){
|
|
|
|
|
$color = 'style="color:'.ATTACK_COLOR_BUFF.'"';
|
|
|
|
|
} else if($row['type'] == 'lose' || $row['type'] == 'lose2'){
|
|
|
|
|
$color = 'style="color:'.ATTACK_COLOR_DEBUFF.'"';
|
|
|
|
|
} else if($row['type'] == 'hp' || $row['type'] == 'hpmp'){
|
|
|
|
|
$color = 'style="color:'.ATTACK_COLOR_HEAL.'"';
|
|
|
|
|
} else {
|
|
|
|
|
$color = 'style="color:'.ATTACK_COLOR_SPECIAL.'"';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$qry = db_query('SELECT farbe FROM `attackentyp` where name = \'' . $row['type'].'\'');
|
|
|
|
|
$row_color = mysql_fetch_row($qry);
|
|
|
|
|
$color = 'style="color:'.$row_color[0].'"';
|
|
|
|
|
|
|
|
|
|
if($withColor) {
|
|
|
|
|
return '<span '.$color.'>'.$row['name'].'</span>';
|
|
|
|
|
} else {
|
|
|
|
|