|
|
@ -18,12 +18,6 @@ defineIfNotDefined('GROUP_COLOR_DEVELOPER', 'orange');
|
|
|
|
defineIfNotDefined('GROUP_COLOR_CREATIVE', 'red');
|
|
|
|
defineIfNotDefined('GROUP_COLOR_CREATIVE', 'red');
|
|
|
|
defineIfNotDefined('GROUP_COLOR_MODERATOR', 'green');
|
|
|
|
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
|
|
|
|
// 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);
|
|
|
|
$qry = mysql_query($sql);
|
|
|
|
$row = mysql_fetch_assoc($qry);
|
|
|
|
$row = mysql_fetch_assoc($qry);
|
|
|
|
|
|
|
|
|
|
|
|
if($row['type'] == 'normal'){
|
|
|
|
|
|
|
|
$color = 'style="color:'.ATTACK_COLOR_DMGATTACK.'"';
|
|
|
|
$qry = db_query('SELECT farbe FROM `attackentyp` where name = \'' . $row['type'].'\'');
|
|
|
|
} else if($row['type'] == 'kaioken' || $row['type'] == 'kaioken2' || $row['type'] == 'SSJ'){
|
|
|
|
$row_color = mysql_fetch_row($qry);
|
|
|
|
$color = 'style="color:'.ATTACK_COLOR_BUFF.'"';
|
|
|
|
$color = 'style="color:'.$row_color[0].'"';
|
|
|
|
} 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.'"';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if($withColor) {
|
|
|
|
if($withColor) {
|
|
|
|
return '<span '.$color.'>'.$row['name'].'</span>';
|
|
|
|
return '<span '.$color.'>'.$row['name'].'</span>';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|