public function getProtectiveArmamentRestrictionForSkillRank(
        ProtectiveArmamentCode $protectiveArmamentCode,
        PositiveInteger $protectiveArmamentSkillRank
    ): int
    {
        $restriction = $this->getRestrictionOfProtectiveArmament($protectiveArmamentCode)
            + $this->getProtectiveArmamentRestrictionBonusForSkillRank($protectiveArmamentCode, $protectiveArmamentSkillRank);
        if ($restriction > 0) {
            return 0; // can not turn into bonus
        }

        return $restriction;
    }
public function getProtectiveArmamentRestrictionForSkillRank(
        ProtectiveArmamentCode $protectiveArmamentCode,
        PositiveInteger $protectiveArmamentSkillRank
    ): int
    {
        $restriction = $this->getRestrictionOfProtectiveArmament($protectiveArmamentCode)
            + $this->getProtectiveArmamentRestrictionBonusForSkillRank($protectiveArmamentCode, $protectiveArmamentSkillRank);
        if ($restriction > 0) {
            return 0; // can not turn into bonus
        }

        return $restriction;
    }
public function getProtectiveArmamentRestrictionForSkillRank ( ProtectiveArmamentCode $ protectiveArmamentCode , PositiveInteger $ protectiveArmamentSkillRank ) : int { $ restriction = $ this -> getRestrictionOfProtectiveArmament ( $ protectiveArmamentCode ) + $ this -> getProtectiveArmamentRestrictionBonusForSkillRank ( $ protectiveArmamentCode , $ protectiveArmamentSkillRank ) ; if ( $ restriction > 0 ) { return 0 ; // can not turn into bonus } return $ restriction ; }
Restriction is Fight number malus.

@param ProtectiveArmamentCode $protectiveArmamentCode
@param PositiveInteger $protectiveArmamentSkillRank
@return int
@throws \DrdPlus\Tables\Armaments\Partials\Exceptions\UnexpectedSkillRank
@throws \DrdPlus\Tables\Armaments\Exceptions\UnknownProtectiveArmament
Restriction is Fight number malus .