/** * @param MissingShieldSkillTable $missingShieldSkillsTable * @return int */ public function getMalusToCover(MissingShieldSkillTable $missingShieldSkillsTable) { /** @noinspection ExceptionsAnnotatingAndHandlingInspection */ return $missingShieldSkillsTable->getCoverForSkillRank($this->getCurrentSkillRank()->getValue()); }
/** * Warning: PPH gives you false info about malus to cover with shield (see PPH page 86 right column). * Correct is as gives @see \DrdPlus\Tables\Armaments\Shields\MissingShieldSkillTable * * @param MissingShieldSkillTable $missingShieldSkillTable * @return int */ public function getMalusToCoverWithShield(MissingShieldSkillTable $missingShieldSkillTable) { /** @noinspection ExceptionsAnnotatingAndHandlingInspection */ return $missingShieldSkillTable->getCoverMalusForSkill($this->getShieldUsage() ? $this->getShieldUsage()->getCurrentSkillRank() : 0); }