Register

Simple Cover 5e

An Add-on Module for Foundry Virtual Tabletop

Author: Peterlankton Project Source Foundry Versions 13+ (Verified 13.351) Last Updated 2 days, 4 hours ago

This package contains art, text, or software code produced using generative AI.

Yes, partly for translations (documentation)

 

Simple Cover 5e automatically evaluates cover for the DnD5e system in Foundry VTT during attack rolls and saving throws (multi-target supported). It applies the correct mechanical bonuses (+2 / +5) to the roll, updates chat/card displays, and sets/clears target status effects. The module also adds a custom Ignore Cover item property that you can enable on specific items (e.g., Sacred Flame) to bypass cover for that roll.

How It Works

Settings

Notes & Limitations

Compatibility

Midi-QOL

Ready Set Roll 5e

Simple Cover 5e is partially compatible with Ready Set Roll 5e:

Wall Height

Integration & API (Library Mode)

Simple Cover 5e exposes a small API that other modules can use to query cover without relying on Active Effects or automatic roll mutation. The API is available via the module entry:

const sc = game.modules.get("simplecover5e")?.api;

API Surface

api.getCover({ attacker, target, scene?, debug? })

Compute cover between a single attacker and target. Returns an object like:

const { cover } = sc.getCover({ attacker, target });
// cover is "none", "half", or "threeQuarters"
api.getCoverForTargets({ attacker, targets?, scene?, debug? })

Convenience helper to compute cover for an attacker against multiple targets (or the current user’s selected targets if targets is omitted). Returns an array of { target, result } pairs.

api.getLibraryMode() / api.setLibraryMode(enabled)

Query or toggle a “library mode” flag. When library mode is enabled, Simple Cover 5e will still provide cover calculations via the API, but will not automatically apply Active Effects or mutate roll configuration on its own. The setting is stored as a world setting and is intentionally not shown in the UI; it is meant to be controlled by integrating modules (or GMs via console).

Ready Hook

Consumers can also subscribe to a dedicated hook to safely attach to the API regardless of module load order:

Hooks.on("simplecover5eReady", (api) => {
  // e.g. enable library mode and use the API
  api.setLibraryMode(true);
});

This pattern allows other modules (such as automation/conditions modules) to reuse Simple Cover 5e’s cover engine while retaining full control over how bonuses are applied, how workflows are modified, and how any UI indicators are displayed.

Supported Game Systems

  1. Dungeons & Dragons Fifth Edition

    Latest Version: Version 5.2.2 Last Updated 6 days, 7 hours ago

Categories

Available Versions

  1. Version 1.2.1

    2 days, 4 hours ago
    Foundry Version 13 - 13 (Verified 13.351) Manifest URL Read Notes
  2. Version 1.2.0

    6 days, 8 hours ago
    Foundry Version 13 - 13 (Verified 13.351) Manifest URL Read Notes
  3. Version 1.1.0

    1 week, 2 days ago
    Foundry Version 13 - 13 (Verified 13.351) Manifest URL Read Notes
  4. Version 1.0.0

    2 weeks, 3 days ago
    Foundry Version 13 - 13 (Verified 13.351) Manifest URL Read Notes
  5. Version 0.5.1

    2 weeks, 5 days ago
    Foundry Version 13 - 13 (Verified 13.351) Manifest URL Read Notes
  6. Version 0.5.0

    2 weeks, 6 days ago
    Foundry Version 13 - 13 (Verified 13.351) Manifest URL Read Notes
  7. Version 0.4.0

    3 weeks, 2 days ago
    Foundry Version 13 - 13 (Verified 13.351) Manifest URL Read Notes
  8. Version 0.3.1

    3 weeks, 4 days ago
    Foundry Version 13 - 13 (Verified 13.351) Manifest URL Read Notes
  9. Version 0.3.0

    3 weeks, 4 days ago
    Foundry Version 13 - 13 (Verified 13.351) Manifest URL Read Notes
  10. Version 0.2.0

    3 weeks, 5 days ago
    Foundry Version 13 - 13 (Verified 13.351) Manifest URL Read Notes
  11. Version 0.1.0

    4 weeks ago
    Foundry Version 13 - 13 (Verified 13.350) Manifest URL Read Notes