Skip to content

Commit

Permalink
0.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
crnormand committed Jan 20, 2021
1 parent 1a38a0c commit 8ec510e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Users Guide for [GURPS 4e game aid for Foundry VTT](https://bit.ly/2JaSlQd)

# Current Release Version 0.8.6
# Current Release Version 0.8.7
[If you like our work...](https://ko-fi.com/crnormand)

<a href="https://ko-fi.com/crnormand"><img height="36" src="https://cdn.ko-fi.com/cdn/kofi2.png?v=2"></a>
Expand All @@ -18,9 +18,12 @@ To install the latest stable release, use this manifest URL:

This is what we are currently working on:

- 0.8.7
- 0.8.8

### History
- 0.8.7
- Bug fix for multiple PDF links (and GCA import failure)

- 0.8.6
- Yet more updates to Mook Generator stat block importer
- Support for OtF [Dodge+/-mod text] and [<mapped>+/-mod text] (Vision, Hearing, Fright Check, etc.)
Expand Down
4 changes: 3 additions & 1 deletion lib/moustachewax.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ export default function () {

// Allows handling of multiple page refs, e.g."B101,MA150"
Handlebars.registerHelper('pdflink', function (link) {
return link.split(",").map(l => game.GURPS.gurpslink(`[PDF:${l}]`)).join(", ");
let txt = link;
if (Array.isArray(link)) txt = link.join(",");
return (!!txt) ? txt.split(",").map(l => game.GURPS.gurpslink(`[PDF:${l}]`)).join(", ") : "";
})


Expand Down
3 changes: 1 addition & 2 deletions module/actor.js
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,7 @@ export class GurpsActor extends Actor {
a.name = t(j.name);
a.points = this.intFrom(j.points);
a.setNotes(t(j.text));
if (!!j.pageref)
a.pageref = t(j.pageref).split(",").splice(0, 1);
a.pageref = t(j.pageref);
game.GURPS.put(datalist, a, index++);
}
}
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 @@
"name": "gurps",
"title": "GURPS 4th Edition Game Aid (Unofficial)",
"description": "A game aid to help play GURPS 4e for Foundry VTT (GCS/GCA edition)",
"version": "0.8.6",
"version": "0.8.7",
"minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.9",
"templateVersion": 2,
Expand Down Expand Up @@ -38,6 +38,6 @@
"secondaryTokenAttribute": "FP",
"url": "https://github.com/crnormand/gurps",
"manifest": "https://raw.githubusercontent.com/crnormand/gurps/release/system.json",
"download": "https://github.com/crnormand/gurps/archive/0.8.6.zip",
"download": "https://github.com/crnormand/gurps/archive/0.8.7.zip",
"license": "LICENSE.txt"
}

0 comments on commit 8ec510e

Please sign in to comment.