Added System doc

System doc added and it loads
This commit is contained in:
Jack Condon
2021-10-17 00:16:34 +11:00
parent 874d9c8fb6
commit f4d02cf296
2 changed files with 216 additions and 0 deletions

View File

@@ -3,8 +3,10 @@ import {dnd35e} from "./dnd35e.js"
import {pf2e} from "./pf2e.js"
import {demonlord} from "./demonlord.js";
import {wfrp4e} from "./wfrp4e.js"
import {forbiddenlands} from "./forbidden-lands.js"
import {compatibleCore} from "../misc.js";
export class TokenHelper{
constructor(){
this.system;
@@ -16,6 +18,7 @@ export class TokenHelper{
else if (game.system.id == 'pf2e') this.system = new pf2e();
else if (game.system.id == 'demonlord') this.system = new demonlord();
else if (game.system.id == 'wfrp4e') this.system = new wfrp4e();
else if (game.system.id == 'forbidden-lands') this.system = new forbiddenlands();
else this.system = new dnd5e(); //default to dnd5e
}