Логин | Удар в | Последовательность ударов |
" . $u . " | голову |
";
$c = count($hits);
$excl = [2, 3, 4, 5];
for ($i = 0; $i <= $c; $i++) {
if (!$hits[$i][$u]['hits']) {
$i++;
}
if ($hits[$i][$u]['hits'] == 1) {
echo "X";
} elseif ($hits[$i][$u]['hits'] == 665) {
echo "X";
} elseif (in_array($hits[$i][$u]['hits'], $excl)) {
echo "$anX$an2";
}
}
echo " "; $excl = [1, 3, 4, 5, 665]; for ($i = 0; $i < $c; $i++) { if (!$hits[$i][$u]['hits']) { $i++; } if ($hits[$i][$u]['hits'] == 2) { echo "X"; } elseif (in_array($hits[$i][$u]['hits'], $excl)) { echo "$anX$an2"; } } echo " "; $excl = [1, 2, 4, 5, 665]; for ($i = 0; $i < $c; $i++) { if (!$hits[$i][$u]['hits']) { $i++; } if ($hits[$i][$u]['hits'] == 3) { echo "X"; } elseif (in_array($hits[$i][$u]['hits'], $excl)) { echo "$anX$an2"; } } echo " "; $excl = [1, 3, 2, 5, 665]; for ($i = 0; $i < $c; $i++) { if (!$hits[$i][$u]['hits']) { $i++; } if ($hits[$i][$u]['hits'] == 4) { echo "X"; } elseif (in_array($hits[$i][$u]['hits'], $excl)) { echo "$anX$an2"; } } echo " "; $excl = [1, 3, 4, 2, 665]; for ($i = 0; $i < $c; $i++) { if (!$hits[$i][$u]['hits']) { $i++; } if ($hits[$i][$u]['hits'] == 5) { echo "X"; } elseif (in_array($hits[$i][$u]['hits'], $excl)) { echo "$anX$an2"; } } echo " "; echo " |
Ξ
- крит + инвалидность, X - доп. магический удар,Логин | Блок | Последовательность блоков |
" . $u . " | голова | ";
$c = count($hits) - 1;
$excl = ["00", "01", "10", "11"];
for ($i = 0; $i <= $c; $i++) {
if (!in_array($hits[$i][$u]['defs'][0], $excl)) {
$i++;
}
if ($hits[$i][$u]['defs'][0] == "11") {
echo "X";
} elseif ($hits[$i][$u]['defs'][0] == "10") {
echo "•";
} else {
echo "$anX$an2";
}//}
}
echo " "; for ($i = 0; $i <= $c; $i++) { if (!in_array($hits[$i][$u]['defs'][1], $excl)) { $i++; } if ($hits[$i][$u]['defs'][1] == "11") { echo "X"; } elseif ($hits[$i][$u]['defs'][1] == "10") { echo "•"; } else { echo "$anX$an2"; }//} } echo " "; for ($i = 0; $i <= $c; $i++) { if (!in_array($hits[$i][$u]['defs'][2], $excl)) { $i++; } if ($hits[$i][$u]['defs'][2] == "11") { echo "X"; } elseif ($hits[$i][$u]['defs'][2] == "10") { echo "•"; } else { echo "$anX$an2"; }//} } echo " "; for ($i = 0; $i <= $c; $i++) { if (!in_array($hits[$i][$u]['defs'][3], $excl)) { $i++; } if ($hits[$i][$u]['defs'][3] == "11") { echo "X"; } elseif ($hits[$i][$u]['defs'][3] == "10") { echo "•"; } else { echo "$anX$an2"; }//} } echo " "; for ($i = 0; $i <= $c; $i++) { if (!in_array($hits[$i][$u]['defs'][4], $excl)) { $i++; } if ($hits[$i][$u]['defs'][4] == "11") { echo "X"; } elseif ($hits[$i][$u]['defs'][4] == "10") { echo "•"; } else { echo "$anX$an2"; }//} } echo " |
Логин | Удары | Блоки | Попадания | Защита | Урон | Потери | Вылечено | " . $team1_users[$team1[$i]] . " | " . (!empty($where_hit[$team1[$i]][1]) ? $where_hit[$team1[$i]][1] : 0) . "/" . (!empty($where_hit[$team1[$i]][2]) ? $where_hit[$team1[$i]][2] : 0) . "/" . (!empty($where_hit[$team1[$i]][3]) ? $where_hit[$team1[$i]][3] : 0) . "/" . (!empty($where_hit[$team1[$i]][4]) ? $where_hit[$team1[$i]][4] : 0) . "/" . (!empty($where_hit[$team1[$i]][5]) ? $where_hit[$team1[$i]][5] : 0) . " | 0/0/0/0/0 | 0(0)0 | 0/0/0 | 0/0 | 0 | 0 | "; } echo "
Всего[" . $sum_hp1[1] . "/" . $sum_hp1[2] . "] | 0 | 0 | 0 | 0 | 0 | ||
" . $team2_users[$team2[$i]] . " | " . (!empty($where_hit[$team2[$i]][1]) ? $where_hit[$team2[$i]][1] : 0) . "/" . (!empty($where_hit[$team2[$i]][2]) ? $where_hit[$team2[$i]][2] : 0) . "/" . (!empty($where_hit[$team2[$i]][3]) ? $where_hit[$team2[$i]][3] : 0) . "/" . (!empty($where_hit[$team2[$i]][4]) ? $where_hit[$team2[$i]][4] : 0) . "/" . (!empty($where_hit[$team2[$i]][5]) ? $where_hit[$team2[$i]][5] : 0) . " | 0/0/0/0/0 | 0(0)0 | 0/0/0 | 0/0 | 0 | 0 |
Всего[" . $sum_hp2[1] . "/" . $sum_hp2[2] . "] | 0 | 0 | 0 | 0 | 0 |