$pdf->Text($apt_x + 58, $apt_y, formatIt("see memo")); //No protec, see memeo } else { $pdf->Text($apt_x + 58, $apt_y, formatIt("Kin: " . $a->armorKinetic)); //Armor Kinetic $pdf->Text($apt_x + 68, $apt_y, formatIt("Ene: " . $a->armorEnergy)); //Armor Energy } $pdf->SetFont('Lato-LigIta', '', 6); setBookLink($a->name, $apt_x + 108, $apt_y, $p, $pdf); //Armor bookLink $pdf->SetFont('Lato-Lig', '', $fontsize); $apt_y += $y_space; } //GEARS $armor = filterGeneralOnly($morphGear); $y_space = 3.5; $apt_x = 83; $apt_y = 171.5; $fontsize = 8; //if more than 15 gear then chage the fontsize and spaces if (count($armor) > 15) { $fontsize = 5; $y_space = 2; $apt_y = 170; } $pdf->SetFont('Lato-Lig', '', $fontsize); foreach ($armor as $a) { if ($a->occurence > 1) { $occ = "(" . $a->occurence . ") "; } else {
//No protec, see memeo } else { $protec = "Kin: " . formatNumber($a->armorKinetic) . " Ene: " . formatNumber($a->armorEnergy); $protectionKinetic += $a->armorKinetic; $protectionEnergy += $a->armorEnergy; } echo formatResult($occ . $a->name . ($a->gearType == EPGear::$IMPLANT_GEAR ? " (Implant)" : "")) . $tab . $protec . $tab . setBookLink($a->name, $p) . $carriageReturn; } # total protection if ($protectionKinetic > 0 || $protectionEnergy > 0) { echo formatResult("") . $tab . "Kin: " . formatNumber($protectionKinetic) . " Ene: " . formatNumber($protectionEnergy) . $carriageReturn; } echo $line . $carriageReturn; //GEARS echo formatTitle("Gears") . $carriageReturn . $carriageReturn; $gears = filterGeneralOnly($morphGear); foreach ($gears as $g) { if ($g->occurence > 1) { $occ = "(" . $g->occurence . ") "; } else { $occ = ""; } echo formatResult($occ . " " . $g->name) . $tab . setBookLink($g->name, $p) . $carriageReturn; } echo $line . $carriageReturn; //IMPLANTS echo formatTitle("Implants") . $carriageReturn . $carriageReturn; $implants = filterImplantOnly($morphGear); foreach ($implants as $i) { if ($i->occurence > 1) { $occ = "(" . $i->occurence . ") ";