Skip to content

Commit

Permalink
v9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Tallon159 committed Apr 19, 2022
1 parent 0655ede commit 0dd5202
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions encounter-builder/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "encounter-builder",
"title": "5e Encounter Builder",
"description": "Adds an application to determine encounter difficulty, based on the Kobold Fight Club.",
"version": "0.2.2",
"minimumCoreVersion": "0.5.0",
"compatibleCoreVersion": "0.8.7",
"version": "0.3.0",
"minimumCoreVersion": "9",
"compatibleCoreVersion": "9",
"author": "RaySSharma",
"scripts": ["./src/encounter-builder.js", "./src/builder-form.js"],
"styles": ["./css/encounter-builder.css"],
Expand Down
4 changes: 2 additions & 2 deletions encounter-builder/src/builder-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ class EncounterBuilderApplication extends Application {
const app = game.users.apps.find(e => e.id === game.i18n.localize("EB.id"));
let actor;
if (data.pack) {
actor = await game.actors.importFromCollection(data.pack, data.id)
actor = await Actor.fromDropData(data);
}
else {
actor = game.actors.get(data.id)
actor = game.actors.get(data.id);
}
return [app, actor]
}
Expand Down

0 comments on commit 0dd5202

Please sign in to comment.