Changed Cone template to be 'In Front', acting as a 180 degree cone

This commit is contained in:
WBHarry 2025-07-08 19:04:04 +02:00
parent 13f65e514a
commit 4dc0e79aec
5 changed files with 79 additions and 1 deletions

View file

@ -1,7 +1,7 @@
export default class DhTooltipManager extends foundry.helpers.interaction.TooltipManager {
async activate(element, options = {}) {
let html = options.html;
if (element.dataset.tooltip.startsWith('#item#')) {
if (element.dataset.tooltip?.startsWith('#item#')) {
const item = await foundry.utils.fromUuid(element.dataset.tooltip.slice(6));
if (item) {
html = await foundry.applications.handlebars.renderTemplate(