Skip to content

Commit 40f096d

Browse files
authored
Merge pull request #4697 from Jmr3366/j_develop
Include `token types` in `getInfo("campaign")`
2 parents f87db04 + a7a82a5 commit 40f096d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/net/rptools/maptool/client/functions/getInfoFunction.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@ private JsonObject getCampaignInfo() throws ParserException {
371371
}
372372
cinfo.add("tables", tinfo);
373373

374+
JsonArray ttinfo = new JsonArray();
375+
c.getTokenTypes().forEach(ttinfo::add);
376+
cinfo.add("token types", ttinfo);
377+
374378
JsonObject llinfo = new JsonObject();
375379
for (String ltype : c.getLightSourcesMap().keySet()) {
376380
JsonArray ltinfo = new JsonArray();

0 commit comments

Comments
 (0)