While the Shadowrun Fifth Edition Core Rulebook rules don't use range for all vision types like some other games do, the Foundry vision functions are all ranged based. Using the built-in systems available in Foundry keep things simple and clean — if a player can see a token in Foundry, they can take actions on that token.
The effective vision range is based on the Rating of whatever provides that vision, most commonly an optical and vision device[1]. For items that can accept vision modifications (like helmets and ballistic masks), but don't have a Rating, use the Rating of the appropriate Sensor Housing[2] — Rating 2 for helmets, Rating 5 for full body suits.
If the vision is granted by an Adept or Critter Power that does not have an inherent Rating, use the character's Magic Rating.
For Imaging Scopes and natural senses not granted via Awakening, treat as if Rating 6.
Apply Vision
Changing the token's vision properties based on vision mode uses the Effect Macro module. Each item that applies a vision mode should have a On Effect Toggle (on) option set to:
await game.macros.getName("Thermographic Vision").execute({
token: token,
rating: item.system.technology.rating,
cone: 360
});
Valid options for getName() are Astral Perception, Low-Light Vision, or Thermographic Vision.
To keep optics mounted on weapons useful, use this code to take the weapon's range into account:
await game.macros.getName("Low-Light Vision").execute({
token: token,
rating: item.system.range.ranges.extreme / 3 - 2,
cone: 15
});
await game.macros.getName("Thermographic Vision").execute({
token: token,
rating: item.system.range.ranges.extreme / 3 - 1,
cone: 15
});
Note that for this application, the Active Effect and Effect Macro need to be on the weapon itself, not the accessory.
If the source of the effect is an adept or critter power, replace rating with actor.system.attributes.magic.value. For other situations, it can be a static integer value.
Change cone to 30 for handheld items like cameras.
Remove Vision
Removing vision is simpler; add a On Effect Toggle (off) option set to:
await game.macros.getName("Clear Vision").execute();
References
- ↑ Shadowrun Fifth Edition Core Rulebook (p. 443)
- ↑ Shadowrun Fifth Edition Core Rulebook (p. 446)
