From 201993967868c5d79055831436df0e7e78159417 Mon Sep 17 00:00:00 2001
From: Kyle <41976328+ImKyle4815@users.noreply.github.com>
Date: Thu, 11 Feb 2021 08:58:04 -0800
Subject: [PATCH] Update versionSaga.js
---
js/frames/versionSaga.js | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/js/frames/versionSaga.js b/js/frames/versionSaga.js
index a1cf221e..b1e7142e 100644
--- a/js/frames/versionSaga.js
+++ b/js/frames/versionSaga.js
@@ -12,22 +12,22 @@ if (!loadedVersions.includes('/js/frames/versionSaga.js')) {
-
+
-
+
-
+
-
+
`;
if (!card.saga) {
@@ -84,7 +84,7 @@ function sagaEdited() {
sagaContext.drawImage(sagaChapter, numeralX, numeralY, numeralWidth, numeralHeight);
sagaContext.fillText(romanNumeral(sagaCount), numeralTextX, numeralTextY);
sagaCount ++;
- } else {
+ } else if (card.saga.abilities[i] == 2) {
var numeralSpread = scaleHeight(0.0358);
var numeralTextSpread = scaleHeight(0.0358);
sagaContext.drawImage(sagaChapter, numeralX, numeralY - numeralSpread, numeralWidth, numeralHeight);
@@ -92,6 +92,16 @@ function sagaEdited() {
sagaContext.fillText(romanNumeral(sagaCount), numeralTextX, numeralTextY - numeralTextSpread);
sagaContext.fillText(romanNumeral(sagaCount + 1), numeralTextX, numeralTextY + numeralTextSpread);
sagaCount += 2;
+ } else {
+ var numeralSpread = 2 * scaleHeight(0.0358);
+ var numeralTextSpread = 2 * scaleHeight(0.0358);
+ sagaContext.drawImage(sagaChapter, numeralX, numeralY - numeralSpread, numeralWidth, numeralHeight);
+ sagaContext.drawImage(sagaChapter, numeralX, numeralY, numeralWidth, numeralHeight);
+ sagaContext.drawImage(sagaChapter, numeralX, numeralY + numeralSpread, numeralWidth, numeralHeight);
+ sagaContext.fillText(romanNumeral(sagaCount), numeralTextX, numeralTextY - numeralTextSpread);
+ sagaContext.fillText(romanNumeral(sagaCount + 1), numeralTextX, numeralTextY);
+ sagaContext.fillText(romanNumeral(sagaCount + 2), numeralTextX, numeralTextY + numeralTextSpread);
+ sagaCount += 3;
}
}
}