public function __construct(Strength $strength, Integer1To6 $strengthRoll, Agility $agility, Integer1To6 $agilityRoll, Knack $knack, Integer1To6 $knackRoll, Will $will, Integer1To6 $willRoll, Intelligence $intelligence, Integer1To6 $intelligenceRoll, Charisma $charisma, Integer1To6 $charismaRoll) { parent::__construct($strength, $agility, $knack, $will, $intelligence, $charisma); $this->strengthRoll = $strengthRoll->getValue(); $this->agilityRoll = $agilityRoll->getValue(); $this->knackRoll = $knackRoll->getValue(); $this->willRoll = $willRoll->getValue(); $this->intelligenceRoll = $intelligenceRoll->getValue(); $this->charismaRoll = $charismaRoll->getValue(); }
/** * @param Race $race * @param GenderCode $genderCode * @param Tables $tables * @param ExceptionalityProperties $exceptionalityProperties * @param ProfessionLevels $professionLevels * @return Size * @throws Exceptions\TooLowStrengthAdjustment */ private function createFirstLevelSize(Race $race, GenderCode $genderCode, Tables $tables, ExceptionalityProperties $exceptionalityProperties, ProfessionLevels $professionLevels) { // the race bonus is NOT count for adjustment, doesn't count to size change respectively $sizeModifierByStrength = $this->getSizeModifierByStrength($exceptionalityProperties->getStrength()->getValue() + $professionLevels->getFirstLevelStrengthModifier()); $raceSize = $race->getSize($genderCode, $tables); return Size::getIt($raceSize + $sizeModifierByStrength); }
public function __construct(Strength $strength, Agility $agility, Knack $knack, Will $will, Intelligence $intelligence, Charisma $charisma) { parent::__construct($strength, $agility, $knack, $will, $intelligence, $charisma); }