DrdPlus/CombatActions/CombatActions.php
public function getDefenseNumberModifierAgainstFasterOpponent(): int
    {
        $defenseNumberModifier = $this->getDefenseNumberModifier();
        foreach ($this->combatActionCodes as $combatActionCode) {
            if ($combatActionCode->getValue() === CombatActionCode::RUN) {
                $defenseNumberModifier -= 4;
            }
            if ($combatActionCode->getValue() === CombatActionCode::PUT_OUT_HARDLY_ACCESSIBLE_ITEM) {
                $defenseNumberModifier -= 4;
            }
        }

        return $defenseNumberModifier;
    }
public function getDefenseNumberModifierAgainstFasterOpponent(): int
    {
        $defenseNumberModifier = $this->getDefenseNumberModifier();
        foreach ($this->combatActionCodes as $combatActionCode) {
            if ($combatActionCode->getValue() === CombatActionCode::RUN) {
                $defenseNumberModifier -= 4;
            }
            if ($combatActionCode->getValue() === CombatActionCode::PUT_OUT_HARDLY_ACCESSIBLE_ITEM) {
                $defenseNumberModifier -= 4;
            }
        }

        return $defenseNumberModifier;
    }
public function getDefenseNumberModifierAgainstFasterOpponent ( ) : int { $ defenseNumberModifier = $ this -> getDefenseNumberModifier ( ) ; foreach ( $ this -> combatActionCodes as $ combatActionCode ) { if ( $ combatActionCode -> getValue ( ) === CombatActionCode :: RUN ) { $ defenseNumberModifier -= 4 ; } if ( $ combatActionCode -> getValue ( ) === CombatActionCode :: PUT_OUT_HARDLY_ACCESSIBLE_ITEM ) { $ defenseNumberModifier -= 4 ; } } return $ defenseNumberModifier ; }
Against those opponents acting faster then you, you can have significantly lower defense because they catch you
unprepared.

@return int
Against those opponents acting faster then you you can have significantly lower defense because they catch you unprepared .