Skip to content

Commit

Permalink
fix: remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Mar 5, 2024
1 parent 28c8363 commit f84a61c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ export default class InitiativeTracker extends Plugin {
}

getInitiativeValue(modifier: number | number[] = 0): number {
console.log("πŸš€ ~ file: main.ts:94 ~ modifier:", modifier);

const defaultIfNoResult =
Math.floor(Math.random() * 19 + 1) +
[modifier].flat().reduce((a, b) => a + b, 0);
Expand All @@ -113,7 +111,6 @@ export default class InitiativeTracker extends Plugin {
dice = dice.replace(`%mod${i + 1}%`, `${modifier[i]}`);
}
}
console.log("πŸš€ ~ file: main.ts:104 ~ dice:", dice);
const roller = this.getRoller(dice);
const initiative = roller.rollSync();
if (isNaN(initiative)) return defaultIfNoResult;
Expand Down Expand Up @@ -415,7 +412,6 @@ export default class InitiativeTracker extends Plugin {
"waiting-for-bestiary inline"
);
const delay = Math.floor(200 * Math.random());
console.log("πŸš€ ~ file: main.ts:417 ~ duration:", delay);

setIcon(
loading.createDiv({
Expand Down
5 changes: 0 additions & 5 deletions src/tracker/ui/create/Create.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@
new Notice("Enter a name!");
return;
}
console.log(
"πŸš€ ~ file: Create.svelte:47 ~ modifier:",
modifier
);
try {
creature.modifier = JSON.parse(`${modifier}`);
} catch (e) {
Expand Down

0 comments on commit f84a61c

Please sign in to comment.