Skip to content

Commit

Permalink
updated item import for GCS 5
Browse files Browse the repository at this point in the history
  • Loading branch information
rinickolous committed Oct 2, 2022
1 parent bf309de commit 39063cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion module/item-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class ItemImporter {
if (j.type !== 'equipment_list') {
return ui.notifications.error('The file you uploaded is not a GCS Equipment Library!')
}
if (j.version !== 2) {
if (![2, 4].includes(j.version)) {
return ui.notifications.error('The file you uploaded is not of the right version!')
}
let pack = game.packs.find(p => p.metadata.name === filename)
Expand Down
4 changes: 2 additions & 2 deletions system.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "gurps",
"title": "GURPS 4e Game Aid (Unofficial)",
"description": "A game aid to help play GURPS 4e for Foundry VTT",
"version": "0.15.5",
"version": "0.15.6",
"authors": [
{
"name": "Chris Normand",
Expand Down Expand Up @@ -76,7 +76,7 @@
"secondaryTokenAttribute": "FP",
"url": "https://github.com/crnormand/gurps",
"manifest": "https://github.com/crnormand/gurps/releases/latest/download/system.json",
"download": "https://github.com/crnormand/gurps/archive/0.15.5.zip",
"download": "https://github.com/crnormand/gurps/archive/0.15.6.zip",
"socket": true,
"license": "LICENSE.txt"
}

0 comments on commit 39063cf

Please sign in to comment.