DrdPlus/CombatActions/CombatActions.php
public function getSpeedModifier(): int
    {
        $speedBonus = 0;
        foreach ($this->combatActionCodes as $combatActionCode) {
            /** can not be combined with RUN, but that should be solved in @see validateActionCodesCoWork */
            if ($combatActionCode->getValue() === CombatActionCode::MOVE) {
                /** see PPH page 107 left column */
                $speedBonus += 8;
            }
            /** can not be combined with MOVE, but that should be solved in @see validateActionCodesCoWork */
            if ($combatActionCode->getValue() === CombatActionCode::RUN) {
                /** see PPH page 107 left column */
                $speedBonus += 22;
            }
        }

        return $speedBonus;
    }
public function getSpeedModifier(): int
    {
        $speedBonus = 0;
        foreach ($this->combatActionCodes as $combatActionCode) {
            /** can not be combined with RUN, but that should be solved in @see validateActionCodesCoWork */
            if ($combatActionCode->getValue() === CombatActionCode::MOVE) {
                /** see PPH page 107 left column */
                $speedBonus += 8;
            }
            /** can not be combined with MOVE, but that should be solved in @see validateActionCodesCoWork */
            if ($combatActionCode->getValue() === CombatActionCode::RUN) {
                /** see PPH page 107 left column */
                $speedBonus += 22;
            }
        }

        return $speedBonus;
    }
public function getSpeedModifier ( ) : int { $ speedBonus = 0 ; foreach ( $ this -> combatActionCodes as $ combatActionCode ) { /** can not be combined with RUN, but that should be solved in @see validateActionCodesCoWork */ if ( $ combatActionCode -> getValue ( ) === CombatActionCode :: MOVE ) { /** see PPH page 107 left column */ $ speedBonus += 8 ; } /** can not be combined with MOVE, but that should be solved in @see validateActionCodesCoWork */ if ( $ combatActionCode -> getValue ( ) === CombatActionCode :: RUN ) { /** see PPH page 107 left column */ $ speedBonus += 22 ; } } return $ speedBonus ; }
In case of MOVE or RUN there is significant speed increment.

@return int
In case of MOVE or RUN there is significant speed increment .