?> </h3> </div> </div> <div class="row"> <div class="three columns text-center"> <small>Mãos</small> <h5><?php echo $longe->getMaoDescricao(); ?> </h5> </div> <div class="three columns text-center"> <small>Perícia</small> <?php $pericia = Pericia::pegar($longe->getPericiaSlug()); ?> <h5><?php echo $pericia->getNome(); ?> </h5> </div> <div class="two columns text-center"> <small>Munição</small> <h5><?php echo $item->getMunicao(); ?> </h5> </div> <div class="two columns text-center"> <small>Peso</small>
?> <small>Kg</small></h3> </div> <div class="six columns text-center"> <small>Preço</small> <h3><small>$</small> <?php echo number_format($item->getPreco(), 2, ',', '.'); ?> </h3> </div> </div> <div class="row"> <div class="twelve columns text-center"> <small>Perícia</small> <?php $pericia = Pericia::pegar($arma->getPericiaSlug()); ?> <h5><?php echo $pericia->getNome(); ?> </h5> </div> </div> <div class="row"> <div class="twelve columns text-center"> <small>Equipa</small> <h3><?php echo $longe->getMaoDescricao(); ?> </h3> </div>
private function getNHPreDefinido($pericia_slug, $em_choque = true) { $nh = 0; $pericia = Pericia::pegar($pericia_slug); foreach ($pericia->listPreDefinido() as $habilidade => $bonus) { switch ($habilidade) { case 'st': if ($this->getST() + $bonus > $nh) { $nh = $this->getST() + $bonus; } break; case 'dx': if ($this->getDX($em_choque) + $bonus > $nh) { $nh = $this->getDX() + $bonus; } break; case 'iq': if ($this->getIQ($em_choque) + $bonus > $nh) { $nh = $this->getIQ() + $bonus; } break; case 'ht': if ($this->getHT() + $bonus > $nh) { $nh = $this->getHT() + $bonus; } break; default: $nhtmp = $this->getNH($habilidade, true); if ($nhtmp > $nh) { $nh = $nhtmp; } break; } } return $nh; }