diff --git a/cj/bg/1.png b/cj/bg/1.png new file mode 100644 index 0000000..913a0bc Binary files /dev/null and b/cj/bg/1.png differ diff --git a/cj/bg/10.png b/cj/bg/10.png new file mode 100644 index 0000000..dd51d91 Binary files /dev/null and b/cj/bg/10.png differ diff --git a/cj/bg/11.png b/cj/bg/11.png new file mode 100644 index 0000000..f26cf93 Binary files /dev/null and b/cj/bg/11.png differ diff --git a/cj/bg/12.png b/cj/bg/12.png new file mode 100644 index 0000000..d9ce244 Binary files /dev/null and b/cj/bg/12.png differ diff --git a/cj/bg/13.png b/cj/bg/13.png new file mode 100644 index 0000000..f5ee574 Binary files /dev/null and b/cj/bg/13.png differ diff --git a/cj/bg/14.png b/cj/bg/14.png new file mode 100644 index 0000000..cbe39f2 Binary files /dev/null and b/cj/bg/14.png differ diff --git a/cj/bg/15.png b/cj/bg/15.png new file mode 100644 index 0000000..acb15d9 Binary files /dev/null and b/cj/bg/15.png differ diff --git a/cj/bg/16.png b/cj/bg/16.png new file mode 100644 index 0000000..c8d0402 Binary files /dev/null and b/cj/bg/16.png differ diff --git a/cj/bg/17.png b/cj/bg/17.png new file mode 100644 index 0000000..c47230e Binary files /dev/null and b/cj/bg/17.png differ diff --git a/cj/bg/18.png b/cj/bg/18.png new file mode 100644 index 0000000..52e5736 Binary files /dev/null and b/cj/bg/18.png differ diff --git a/cj/bg/19.png b/cj/bg/19.png new file mode 100644 index 0000000..61b9e32 Binary files /dev/null and b/cj/bg/19.png differ diff --git a/cj/bg/2.png b/cj/bg/2.png new file mode 100644 index 0000000..6d49c9e Binary files /dev/null and b/cj/bg/2.png differ diff --git a/cj/bg/20.png b/cj/bg/20.png new file mode 100644 index 0000000..9ea6739 Binary files /dev/null and b/cj/bg/20.png differ diff --git a/cj/bg/21.png b/cj/bg/21.png new file mode 100644 index 0000000..8ba866f Binary files /dev/null and b/cj/bg/21.png differ diff --git a/cj/bg/22.png b/cj/bg/22.png new file mode 100644 index 0000000..e2bbbfc Binary files /dev/null and b/cj/bg/22.png differ diff --git a/cj/bg/23.png b/cj/bg/23.png new file mode 100644 index 0000000..32129bc Binary files /dev/null and b/cj/bg/23.png differ diff --git a/cj/bg/24.png b/cj/bg/24.png new file mode 100644 index 0000000..25ec7bc Binary files /dev/null and b/cj/bg/24.png differ diff --git a/cj/bg/25.png b/cj/bg/25.png new file mode 100644 index 0000000..127ecf4 Binary files /dev/null and b/cj/bg/25.png differ diff --git a/cj/bg/26.png b/cj/bg/26.png new file mode 100644 index 0000000..f564f15 Binary files /dev/null and b/cj/bg/26.png differ diff --git a/cj/bg/27.png b/cj/bg/27.png new file mode 100644 index 0000000..e648234 Binary files /dev/null and b/cj/bg/27.png differ diff --git a/cj/bg/28.png b/cj/bg/28.png new file mode 100644 index 0000000..5bc7d9f Binary files /dev/null and b/cj/bg/28.png differ diff --git a/cj/bg/29.png b/cj/bg/29.png new file mode 100644 index 0000000..7e84412 Binary files /dev/null and b/cj/bg/29.png differ diff --git a/cj/bg/3.png b/cj/bg/3.png new file mode 100644 index 0000000..7cdc5f5 Binary files /dev/null and b/cj/bg/3.png differ diff --git a/cj/bg/30.png b/cj/bg/30.png new file mode 100644 index 0000000..efdb5a9 Binary files /dev/null and b/cj/bg/30.png differ diff --git a/cj/bg/31.png b/cj/bg/31.png new file mode 100644 index 0000000..ee2578c Binary files /dev/null and b/cj/bg/31.png differ diff --git a/cj/bg/32.png b/cj/bg/32.png new file mode 100644 index 0000000..d28d52d Binary files /dev/null and b/cj/bg/32.png differ diff --git a/cj/bg/33.png b/cj/bg/33.png new file mode 100644 index 0000000..2237730 Binary files /dev/null and b/cj/bg/33.png differ diff --git a/cj/bg/34.png b/cj/bg/34.png new file mode 100644 index 0000000..057ad89 Binary files /dev/null and b/cj/bg/34.png differ diff --git a/cj/bg/35.png b/cj/bg/35.png new file mode 100644 index 0000000..dd5d7f3 Binary files /dev/null and b/cj/bg/35.png differ diff --git a/cj/bg/36.png b/cj/bg/36.png new file mode 100644 index 0000000..0628d9e Binary files /dev/null and b/cj/bg/36.png differ diff --git a/cj/bg/37.png b/cj/bg/37.png new file mode 100644 index 0000000..270c943 Binary files /dev/null and b/cj/bg/37.png differ diff --git a/cj/bg/38.png b/cj/bg/38.png new file mode 100644 index 0000000..3c3b9d0 Binary files /dev/null and b/cj/bg/38.png differ diff --git a/cj/bg/4.png b/cj/bg/4.png new file mode 100644 index 0000000..ec1b7b9 Binary files /dev/null and b/cj/bg/4.png differ diff --git a/cj/bg/5.png b/cj/bg/5.png new file mode 100644 index 0000000..34c014b Binary files /dev/null and b/cj/bg/5.png differ diff --git a/cj/bg/6.png b/cj/bg/6.png new file mode 100644 index 0000000..bae63f3 Binary files /dev/null and b/cj/bg/6.png differ diff --git a/cj/bg/7.png b/cj/bg/7.png new file mode 100644 index 0000000..cd9a9ba Binary files /dev/null and b/cj/bg/7.png differ diff --git a/cj/bg/8.png b/cj/bg/8.png new file mode 100644 index 0000000..d2e8ee5 Binary files /dev/null and b/cj/bg/8.png differ diff --git a/cj/bg/9.png b/cj/bg/9.png new file mode 100644 index 0000000..0ff1f7a Binary files /dev/null and b/cj/bg/9.png differ diff --git a/create-card.js b/create-card.js index 10c5626..aa22417 100644 --- a/create-card.js +++ b/create-card.js @@ -136,6 +136,11 @@ class CardCreator { this.imgBluemage = await loadImage(absolute('./cj/1/bluemage.png')); + this.imgJobBg = {}; + for (var i = 1; i <= 38; i++) { + this.imgJobBg[i] = await loadImage(absolute(`./cj/bg/${i}.png`)); + } + await this.countMountsMinions(); } @@ -246,6 +251,8 @@ class CardCreator { ctx.beginPath(); ctx.fillRect(rectStartX, rectStartRow1Y, rectFullWidth, rectHeightRow1); + ctx.drawImage(this.imgJobBg[data.Character.ActiveClassJob.Class.ID], rectStartX, rectStartRow1Y, rectFullWidth, rectHeightRow1); + ctx.fillRect(rectStartX, rectStartRow2Y, rectHalfWidth, rectHeightRow2); ctx.fillRect(rectStartXHalf, rectStartRow2Y, rectHalfWidth, rectHeightRow2); diff --git a/jobbg.psd b/jobbg.psd new file mode 100644 index 0000000..4009809 Binary files /dev/null and b/jobbg.psd differ