Skip to content

Commit

Permalink
chore: remove Plutonium dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGiddyLimit committed Jan 11, 2023
1 parent 4e23028 commit f86fe64
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion module/js/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ class Util {
`|`,
];

static get plutoniumApi () { return game.modules.get(SharedConsts.MODULE_NAME_PARENT).api; }
static get plutoniumApi () {
return game.modules.get(SharedConsts.MODULE_NAME_PARENT)?.api
|| game.modules.get(SharedConsts.MODULE_NAME_PARENT_ALT)?.api;
}
}

class DataManager {
Expand Down
1 change: 1 addition & 0 deletions module/shared/SharedConsts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class SharedConsts {
static MODULE_PATH = `modules/${SharedConsts.MODULE_ID}`;

static MODULE_NAME_PARENT = `plutonium`;
static MODULE_NAME_PARENT_ALT = `srd5e`;
}

export {SharedConsts};
6 changes: 5 additions & 1 deletion script/build-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,22 @@ export const buildTask = async () => {
download: `https://github.com/TheGiddyLimit/plutonium-addon-automation/releases/download/${packageJson.version}/plutonium-addon-automation.zip`,
compatibility: {
minimum: "10",
verified: "10.288",
verified: "10.291",
},
url: "https://www.patreon.com/Giddy5e",
bugs: "https://discord.gg/nGvRCDs",

relationships: {
requires: [
// region Disabled, as Plutonium may go by other IDs :^)
/*
{
id: "plutonium",
type: "module",
manifest: "https://raw.githubusercontent.com/TheGiddyLimit/plutonium-next/master/module.json",
},
*/
// endregion
{
id: "midi-qol",
type: "module",
Expand Down

0 comments on commit f86fe64

Please sign in to comment.