src/Measurements/Experiences/ExperiencesTable.php
/**
     * Casting level to experiences is mostly lossy conversion!
     * Gives experiences needed from previous (current -1) to given level.
     *
     * @param Level $level
     * @return Experiences
     */
Casting level to experiences is mostly lossy conversion.
Gives experiences needed from previous (current -1) to given level.

@param Level $level
@return Experiences
Casting level to experiences is mostly lossy conversion . Gives experiences needed from previous ( current - 1 ) to given level . @param Level $level @return Experiences
public function toExperiences(Level $level): Experiences
    {
        if ($level->getValue() > 1) {
            $woundsBonus = new WoundsBonus($this->levelToBonusValue($level), $this->woundsTable);
            $wounds = $this->woundsTable->toWounds($woundsBonus);
            $experiencesValue = $wounds->getValue();
        } else {
            $experiencesValue = 0; 
        }
        return new Experiences($experiencesValue, $this);
    }
public function toExperiences ( Level $ level ) : Experiences { if ( $ level -> getValue ( ) > 1 ) { $ woundsBonus = new WoundsBonus ( $ this -> levelToBonusValue ( $ level ) , $ this -> woundsTable ) ; $ wounds = $ this -> woundsTable -> toWounds ( $ woundsBonus ) ; $ experiencesValue = $ wounds -> getValue ( ) ; } else { $ experiencesValue = 0 ; } return new Experiences ( $ experiencesValue , $ this ) ; }
Casting level to experiences is mostly lossy conversion!
Casting level to experiences is mostly lossy conversion!
// including first level which is for free for main profession