Merge pull request #14 from ArcaneDisgea/master

fix for blu bug
This commit is contained in:
karashiiro 2021-05-31 10:39:00 -07:00 committed by GitHub
commit c00c2470ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -293,7 +293,12 @@ class CardCreator {
// Name, Title, Server Rect // Name, Title, Server Rect
ctx.fillRect(25, 10, 840, 100); ctx.fillRect(25, 10, 840, 100);
ctx.drawImage(this.imgJobBg[data.Character.ActiveClassJob.UnlockedState.ID], 450, 4, rectFullWidth, 110); // BLU returns a null UnlockedState.ID so we can't use it to pick the job image.
if (data.Character.ActiveClassJob.UnlockedState.ID != null) {
ctx.drawImage(this.imgJobBg[data.Character.ActiveClassJob.UnlockedState.ID], 450, 4, rectFullWidth, 110);
} else {
ctx.drawImage(this.imgJobBg[36], 450, 4, rectFullWidth, 110);
}
ctx.fillRect(rectStartX, rectStartRow2Y, rectHalfWidth, rectHeightRow2); ctx.fillRect(rectStartX, rectStartRow2Y, rectHalfWidth, rectHeightRow2);
ctx.fillRect(rectStartXHalf, rectStartRow2Y, rectHalfWidth, rectHeightRow2); ctx.fillRect(rectStartXHalf, rectStartRow2Y, rectHalfWidth, rectHeightRow2);