Ejemplo n.º 1
0
 /**
  * Gives base of wound with a weapon and user strength.
  *
  * @param WeaponlikeCode $weaponlikeCode
  * @param Strength $currentStrength
  * @return int
  * @throws CanNotUseWeaponBecauseOfMissingStrength
  * @throws Exceptions\UnknownArmament
  * @throws Exceptions\UnknownWeaponlike
  * @throws Exceptions\UnknownRangedWeapon
  * @throws UnknownMeleeWeaponlike
  * @throws UnknownBow
  */
 public function getBaseOfWoundsUsingWeaponlike(WeaponlikeCode $weaponlikeCode, Strength $currentStrength)
 {
     // weapon base of wounds has to be summed with strength via bonus summing, see PPH page 92 right column
     /** @noinspection ExceptionsAnnotatingAndHandlingInspection */
     $baseOfWounds = $this->tables->getBaseOfWoundsTable()->calculateBaseOfWounds($this->getWoundsOfWeaponlike($weaponlikeCode), $this->getApplicableStrength($weaponlikeCode, $currentStrength));
     $baseOfWounds += $this->getBaseOfWoundsMalusByStrengthWithWeaponlike($weaponlikeCode, $currentStrength);
     return $baseOfWounds;
 }