Skip to content

Commit

Permalink
Miscellaneous Fixes
Browse files Browse the repository at this point in the history
Fix play-audio (added).

Fix Target attack Automate.

Remove Styles for Transitions, as it wasn't needed for players.

Weapon Changes.

Clear Chat.

Fix Audio related to Assets library.

Demo Ready Hooks re-arranged to prevent errors.
  • Loading branch information
KevinTheKittyCat committed Apr 6, 2022
1 parent 08a2ffe commit 4f2c295
Show file tree
Hide file tree
Showing 12 changed files with 262 additions and 421 deletions.
24 changes: 13 additions & 11 deletions Demo-Ready-Hooks.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
const actorsToRemove = ["Voo7V2dvjq8OB72O"]; // This can be added in the script with the other actors
const targets = ['8EdIT1rTFAjaQYc9'];
let tokenIdToRemove = ["8EdIT1rTFAjaQYc9"];


Hooks.on("canvasReady", () => {
canvas.tokens.releaseAll()
console.log("released")

// Look at this for error relating to "Cannot read properties of undefined (reading 'mouseInteractionManager')"
for (const targetId of targets) {
token = canvas.tokens.get(targetId);
if (token) token.mouseInteractionManager.callbacks.clickRight2 = () => {
token.setTarget(!token.isTargeted, game.user, true, false);
}
}
})

Hooks.once('ready', () => {
Expand All @@ -11,9 +24,6 @@ Hooks.once('ready', () => {
})

// Double click macro
const actorsToRemove = ["Voo7V2dvjq8OB72O"]; // This can be added in the script with the other actors
const targets = ['8EdIT1rTFAjaQYc9'];
let tokenIdToRemove = ["8EdIT1rTFAjaQYc9"];

Hooks.on("renderBasePlaceableHUD", (a, b, tokenData) => {
if (game.user.role === 1) {
Expand All @@ -27,14 +37,6 @@ Hooks.on("renderBasePlaceableHUD", (a, b, tokenData) => {
}
});

// Look at this for error relating to "Cannot read properties of undefined (reading 'mouseInteractionManager')"
for (const targetId of targets) {
token = canvas.tokens.get(targetId);
token.mouseInteractionManager.callbacks.clickRight2 = () => {
token.setTarget(!token.isTargeted, game.user, true, false);
}
}


/*
actorsToRemove.forEach(a => {
Expand Down
47 changes: 34 additions & 13 deletions data/actors.db

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions data/fog.db

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions data/items.db

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data/journal.db

Large diffs are not rendered by default.

238 changes: 117 additions & 121 deletions data/macros.db

Large diffs are not rendered by default.

250 changes: 0 additions & 250 deletions data/messages.db

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions data/playlists.db

Large diffs are not rendered by default.

58 changes: 45 additions & 13 deletions data/scenes.db

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data/users.db
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
{"_id":"bWT4RleWjkaYiYKA","avatar":"icons/svg/mystery-man.svg","character":"lIQOLqLQnrojlPbQ","color":"#cc2837","hotbar":{"1":"jIku2q6nGGVPPvim","2":"AMuzug7girSVHLu9","3":"ROo2CE1r88lRkNAZ","4":"MKlj7PadEgIS2OHg","5":"x0xZ6e1ITe54JlFx","7":"qtSI82KzqAb6GYPP","9":"w8pnc2eyjovPQ28i","10":"QAlEWVDKEzeUQTkN","11":"1Sqw21gCSDOxpIgI","45":"JLGpEjCELmMcNtpA","49":"ctMo82qzNAyz0Bnd"},"name":"Player 1 (access key: forge)","password":"8156a804749a0180d1452c02c8167dfd149520da28dd8d607423800818da1fa7d6645f4f5a64c026ce4e4e4dc1aa77a1c3074c12c25692b387fc1ae5c66c41ca","passwordSalt":"88aad08c1ba2599cb0c51f405d2669a9fa4cf31d241c0a3cd686a6d28b260f50","permissions":{},"role":1,"flags":{"forge-vtt":{"player":null,"role":null,"name":null,"password":null,"original":true}}}
{"_id":"sDw9EdApww9WOV6s","avatar":"icons/svg/mystery-man.svg","character":"SIYsggkrLxyCsXE7","color":"#cca128","hotbar":{"1":"LphKlLCp4EGLh1zR","2":"XpSc6xwRqChXK6hh","3":"snSG7dxDnUyO9y5v"},"name":"Player 9 (access key: forge)","password":"27b7eee0966805ed2c0dfbcfbd610758ac4b90308def1c0420da92cd12ae2d21cd84815f207b421ac3ad7511a3fc4eda444961992ec4ec01dbf752f8b06e2d3c","passwordSalt":"1cbd14024cda13b7a1fb167ea953ae1ed100470a00991ce8a5650bc2c7791860","permissions":{},"role":1,"flags":{"forge-vtt":{"player":null,"role":null,"name":null,"password":null,"original":true}}}
{"_id":"tzaWSXyg6v5TiMta","avatar":"icons/svg/mystery-man.svg","character":"hK9pjpERnMx5O1Zg","color":"#cc2880","hotbar":{"7":"Bxx0BPOv8RUHBNVw","8":"JsRDaS7u5d01ksYU","41":"jBDzhFY6Qa6C6DjD"},"name":"Player 5 (access key: forge)","password":"dc0526598fb877cfd9b20a6cd4b7fb5976fc32638f351e65c6934f1dbdc3199f43d7f50f59f97205a7fa38b9aac70db03d4777ea5eec13c2a859391fbd7f342b","passwordSalt":"3acd525245c6b3b03f324fab677a518bd9cc0e437fc99e65507e6c4fcfbf1d92","permissions":{},"role":1,"flags":{"forge-vtt":{"player":null,"role":null,"name":null,"password":null,"original":true}}}
{"_id":"NADZk8zaEgJyvbNy","avatar":"icons/svg/mystery-man.svg","character":null,"color":"#cc282f","hotbar":{"1":"D5hhCLJFycG1AZZC","3":"0mjIRSOs2vWXvyFm","4":"N3DHJ4WRFEjbhrPy","7":"c5lB0jg7cVlvueff"},"name":"Player 3 (access key: forge)","password":"3ce031d0f9dbca30579e097269e29c9fe11582f2fe0bd5dfaa7b53fa00d402e84a80f4f4c44242e196b957a4213d1d304f4450bcee3ebfd3deff94aed14b9510","passwordSalt":"5ee841701b26a173c8854629581b6e5e180a252c135e87d16762983fdd41e7f1","permissions":{},"role":1,"flags":{"forge-vtt":{"player":null,"role":null,"name":null,"password":null,"original":true}}}
12 changes: 6 additions & 6 deletions packs/store.db

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
flex-direction: row;
align-content: center;
}

/*
.transition {
padding: 20% !important;
}
.transition-content {
position: initial !important;
transform: none !important;
}
}*/

0 comments on commit 4f2c295

Please sign in to comment.