Commit df3fe8e 1 parent f74be89 commit df3fe8e Copy full SHA for df3fe8e
File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1406,6 +1406,14 @@ function loadConfig(config)
1406
1406
end
1407
1407
Global .setTable (" events" , events )
1408
1408
end
1409
+ if config .banList then
1410
+ for _ ,tab in pairs (Notes .getNotebookTabs ()) do
1411
+ if tab .title == " Card Ban List" then
1412
+ Notes .editNotebookTab ({index = tab .index , body = config .banList })
1413
+ break
1414
+ end
1415
+ end
1416
+ end
1409
1417
if config .broadcast then
1410
1418
printToAll (config .broadcast , Color .SoftYellow )
1411
1419
end
Original file line number Diff line number Diff line change @@ -513,6 +513,15 @@ function ExportConfig()
513
513
piecesDataFiltered [boardName ] = boardTable
514
514
end
515
515
data .secondWave .pieces = piecesDataFiltered
516
+ for _ ,tab in pairs (Notes .getNotebookTabs ()) do
517
+ if tab .title == " Card Ban List" then
518
+ local defaultBanList = " [Major Powers]\n\n [Minor Powers]\n\n [Event Cards]\n\n [Blight Cards]\n\n [Fear Cards]"
519
+ if tab .body ~= " " and tab .body ~= defaultBanList then
520
+ data .banList = tab .body
521
+ end
522
+ break
523
+ end
524
+ end
516
525
updateNotebook (JSON .encode_pretty (data ))
517
526
end
518
527
function updateNotebook (json )
You can’t perform that action at this time.
0 commit comments