No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
sight: { | sight: { | ||
color: "#004422", | color: "#004422", | ||
range: (rating / 2 + | range: (rating / 2 + 2) ** 2, /* Low-Light Vision */ | ||
range: (rating / 2 + 1) ** 2 /* Thermographic Vision */ | range: (rating / 2 + 1) ** 2 /* Thermographic Vision */ | ||
/* Only use one of above. */ | /* Only use one of above. */ | ||
Revision as of 15:27, 20 March 2023
For items that can accept vision modifications (like helmets and ballistic masks) but don't have a rating, treat as Rating 2 instead.
For Imaging Scopes and natural senses not granted via awakening, treat as if Rating 6.
Apply Vision
let rating = origin.system.technology.rating; /* For most technological sources. */
let rating = actor.system.attributes.magic.value; /* For adept and critter powers. */
let rating = 6; /* You can also set a static value, for natural senses or special cases. */
/* Only use one of above. */
token.document.update({
sight: {
color: "#004422",
range: (rating / 2 + 2) ** 2, /* Low-Light Vision */
range: (rating / 2 + 1) ** 2 /* Thermographic Vision */
/* Only use one of above. */
angle: 360 /* Use 360 for anything head-mounted, use 30 for handheld items (scopes, cameras, etc). */
}
});
Remove Vision
token.document.update({
sight: {
color: null,
range: 0,
angle: 360 /* Always reset back to 360. */
}
});
