Skip to content

Commit

Permalink
Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunomiac committed Sep 27, 2023
1 parent 20b9f1c commit acc9d8e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion module/BladesRollCollab.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ts/BladesActiveEffect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class BladesActiveEffect extends ActiveEffect {
if (!funcName || !(funcName in CUSTOMFUNCS)) { return }
if (!funcData) { return }
eLog.display(`Progressing Queue: ${funcName}(${funcData}, ${isReversing}) -- ${FUNCQUEUE[actor.id].queue.length} remaining funcs.`);
FUNCQUEUE[actor.id].curFunc = BladesActiveEffect.RunCustomFunc(actor, CUSTOMFUNCS[funcName as KeyOf<typeof CUSTOMFUNCS>](actor, funcData, effect, isReversing));
FUNCQUEUE[actor.id].curFunc = BladesActiveEffect.RunCustomFunc(actor, CUSTOMFUNCS[funcName](actor, funcData, effect, isReversing));
} else {
eLog.display("Function Queue Complete! Deleting.");
delete FUNCQUEUE[actor.id];
Expand Down
2 changes: 1 addition & 1 deletion ts/BladesRollCollab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2372,7 +2372,7 @@ class BladesRollCollab extends DocumentSheet {
eLog.checkLog3("toggleFactor", "_gmControlToggleFactor", {event, target, value});

if (value && /isPrimary/.test(target)) {
const [_, thisSource, thisFactor] = target.match(/([^.]+)\.([^.]+)\.isPrimary/) as [unknown, "source" | "opposition", Factor];
const [thisSource, thisFactor] = target.split(/\./).slice(-3, -1) as ["source" | "opposition", Factor];
eLog.checkLog3("toggleFactor", "_gmControlToggleFactor - IN", {thisSource, thisFactor});
await Promise.all(Object.values(Factor).map((factor) => {
if (factor === thisFactor) {
Expand Down
2 changes: 1 addition & 1 deletion ts/sheets/item/BladesClockKeeperSheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class BladesClockKeeperSheet extends BladesItemSheet {


// override async _updateObject(event: unknown, formData: any) {
// const updateData = await this.object.update(formData);
// const updateData = await`this.object.update(formData);
// socketlib.system.executeForEveryone("renderOverlay");
// // this.item.renderOverlay();
// return updateData;
Expand Down

0 comments on commit acc9d8e

Please sign in to comment.