Foundry v13 migrtion
This commit is contained in:
@@ -27,7 +27,7 @@ export class SoSUtility {
|
||||
|
||||
'systems/foundryvtt-shadows-over-sol/templates/dialog-flip.html'
|
||||
]
|
||||
return loadTemplates(templatePaths);
|
||||
return foundry.applications.handlebars.loadTemplates(templatePaths);
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
@@ -137,14 +137,14 @@ export class SoSUtility {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static async registerChatCallbacks(html) {
|
||||
html.on("click", '#button-declare-actions', event => {
|
||||
$(html).on("click", '#button-declare-actions', event => {
|
||||
SoSUtility.openDeclareActions(event);
|
||||
});
|
||||
html.on("click", '#button-end-action', event => {
|
||||
$(html).on("click", '#button-end-action', event => {
|
||||
SoSUtility.closeAction(event);
|
||||
});
|
||||
|
||||
html.on("click", '#button-reaction-cover', event => {
|
||||
$(html).on("click", '#button-reaction-cover', event => {
|
||||
let uniqId = event.currentTarget.attributes['data-uniq-id'].value;
|
||||
if (game.user.isGM) {
|
||||
SoSUtility.reactionCover(uniqId);
|
||||
@@ -153,7 +153,7 @@ export class SoSUtility {
|
||||
}
|
||||
});
|
||||
|
||||
html.on("click", '#button-reaction-melee', event => {
|
||||
$(html).on("click", '#button-reaction-melee', event => {
|
||||
let uniqId = event.currentTarget.attributes['data-uniq-id'].value;
|
||||
if (game.user.isGM) {
|
||||
SoSUtility.reactionMelee(uniqId);
|
||||
@@ -161,7 +161,7 @@ export class SoSUtility {
|
||||
game.socket.emit("system.foundryvtt-shadows-over-sol", { name: "msg_reaction_melee", data: { uniqId: uniqId } });
|
||||
}
|
||||
});
|
||||
html.on("click", '#button-reaction-hit', event => {
|
||||
$(html).on("click", '#button-reaction-hit', event => {
|
||||
let uniqId = event.currentTarget.attributes['data-uniq-id'].value;
|
||||
if (game.user.isGM) {
|
||||
SoSUtility.reactionHit(uniqId);
|
||||
|
||||
Reference in New Issue
Block a user