Skip to content

Commit

Permalink
Fix currency issue and remove backup packs
Browse files Browse the repository at this point in the history
  • Loading branch information
aaclayton committed Nov 15, 2019
1 parent 2dd0ff2 commit 2199580
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 1,167 deletions.
2 changes: 1 addition & 1 deletion dnd5e.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Hooks.once("init", async function() {
Hooks.once("setup", function() {

// Localize CONFIG objects once up-front
const toLocalize = ["abilities", "distanceUnits", "itemActionTypes", "skills", "targetTypes", "timePeriods"];
const toLocalize = ["abilities", "currencies", "distanceUnits", "itemActionTypes", "skills", "targetTypes", "timePeriods"];
for ( let o of toLocalize ) {
CONFIG.DND5E[o] = Object.fromEntries(Object.entries(CONFIG.DND5E[o]).map(e => {
e[1] = game.i18n.localize(e[1]);
Expand Down
10 changes: 5 additions & 5 deletions module/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ DND5E.consumableTypes = {
* @type {Object}
*/
DND5E.currencies = {
"pp": "DND5E.currencyPP",
"gp": "DND5E.currencyGP",
"ep": "DND5E.currencyEP",
"sp": "DND5E.currencySP",
"cp": "DND5E.currencyCP",
"pp": "DND5E.CurrencyPP",
"gp": "DND5E.CurrencyGP",
"ep": "DND5E.CurrencyEP",
"sp": "DND5E.CurrencySP",
"cp": "DND5E.CurrencyCP",
};

/* -------------------------------------------- */
Expand Down
12 changes: 0 additions & 12 deletions module/migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,6 @@ export const migrateWorld = async function() {

/* -------------------------------------------- */

/**
* A private function used to migrate 5e bundled compendium packs
* @return {Promise}
*/
const _migrate5eCompendia = async function() {
for ( let pack of game.packs.filter(p => p.metadata.package === "dnd5e") ) {
await game.dnd5e.migrations.migrateCompendium(pack);
}
};

/* -------------------------------------------- */

/**
* Apply migration rules to all Entities within a single Compendium pack
* @param pack
Expand Down
12 changes: 0 additions & 12 deletions packsBackup/classes.db

This file was deleted.

Loading

0 comments on commit 2199580

Please sign in to comment.