2 Commits
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -5,8 +5,8 @@
"version": "0.3.0", "version": "0.3.0",
"compatibility": { "compatibility": {
"minimum": "13", "minimum": "13",
"verified": "13.350", "verified": "14",
"maximum": "13" "maximum": "14"
}, },
"authors": [ "authors": [
{ {
+4 -1
View File
@@ -884,6 +884,7 @@ function actorPayloadFromArchetype({ name, profile, role, location, description,
type: "creature", type: "creature",
img: image || profile.image || "icons/svg/mystery-man.svg", img: image || profile.image || "icons/svg/mystery-man.svg",
folder: folderId, folder: folderId,
ownership: { default: CONST.DOCUMENT_OWNERSHIP_LEVELS.NONE },
flags: { flags: {
[MODULE_ID]: { [MODULE_ID]: {
generated: true, generated: true,
@@ -1014,7 +1015,7 @@ class SlaBpnDispatchApp extends FormApplication {
const playerEntry = await JournalEntry.create({ const playerEntry = await JournalEntry.create({
name: `${draft.colourLabel} BPN - ${draft.shortTitle}`, name: `${draft.colourLabel} BPN - ${draft.shortTitle}`,
img: draft.iconPath || bpnIconPath(draft.colourKey), img: draft.iconPath || bpnIconPath(draft.colourKey),
ownership: { default: CONST.DOCUMENT_OWNERSHIP_LEVELS.OBSERVER }, ownership: { default: CONST.DOCUMENT_OWNERSHIP_LEVELS.NONE },
pages: [{ name: "Mission Brief", type: "text", text: { content: playerHtml(draft) } }] pages: [{ name: "Mission Brief", type: "text", text: { content: playerHtml(draft) } }]
}, { renderSheet: false }); }, { renderSheet: false });
await JournalEntry.create({ await JournalEntry.create({
@@ -1087,6 +1088,7 @@ function ensureLaunchRow(root, parentSelector, rowClass) {
} }
function installJournalButton(_app, html) { function installJournalButton(_app, html) {
if (!game.user?.isGM) return;
const root = getHtmlRoot(html); const root = getHtmlRoot(html);
const launchRow = ensureLaunchRow(root, ".directory-header", "sla-bpn-dispatch-launch-row"); const launchRow = ensureLaunchRow(root, ".directory-header", "sla-bpn-dispatch-launch-row");
if (launchRow && !launchRow.querySelector(".sla-bpn-dispatch-open")) { if (launchRow && !launchRow.querySelector(".sla-bpn-dispatch-open")) {
@@ -1102,6 +1104,7 @@ function installJournalButton(_app, html) {
} }
function installSettingsButton(_app, html) { function installSettingsButton(_app, html) {
if (!game.user?.isGM) return;
const root = getHtmlRoot(html); const root = getHtmlRoot(html);
appendOpenButton(root, ".settings-sidebar #game-details, .settings-sidebar .directory-header .header-actions, .settings-sidebar .action-buttons", "sla-bpn-dispatch-settings-open", "BPN Dispatch"); appendOpenButton(root, ".settings-sidebar #game-details, .settings-sidebar .directory-header .header-actions, .settings-sidebar .action-buttons", "sla-bpn-dispatch-settings-open", "BPN Dispatch");
} }