From 975dd10db5ecacb470288fc4d451023ca18e6ca9 Mon Sep 17 00:00:00 2001 From: spannerisms <32842036+spannerisms@users.noreply.github.com> Date: Tue, 13 Apr 2021 19:24:19 -0400 Subject: [PATCH] remove padding --- stats/creditsnew.asm | 52 ++++++++++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 21 deletions(-) diff --git a/stats/creditsnew.asm b/stats/creditsnew.asm index 0bbb20a..72a2f1d 100644 --- a/stats/creditsnew.asm +++ b/stats/creditsnew.asm @@ -41,12 +41,12 @@ endmacro ;--------------------------------------------------------------------------------------------------- -macro bigcredits(text) +macro addbigcredits(text, padding) !CLINE #= !CLINE+1 table "creditscharmapbighi.txt" ?line_top: - db (32-(?end-?text))/2 + db db 2*(?end-?text)-1 ?text: db "" @@ -59,7 +59,7 @@ macro bigcredits(text) table "creditscharmapbiglo.txt" ?line_bottom: - db (32-(?end-?text))/2 + db db 2*(?end-?text)-1 db "" @@ -71,6 +71,16 @@ macro bigcredits(text) endmacro +macro bigcredits(text) + addbigcredits("", (32-(?end-?text))/2) +endmacro + +;--------------------------------------------------------------------------------------------------- + +macro bigcreditsleft(text) + addbigcredits("", 2) +endmacro + ;--------------------------------------------------------------------------------------------------- macro preline() @@ -546,19 +556,19 @@ print "Line number: !CLINE | Expected: 302" %blankline() %blankline() -%bigcredits("FIRST SWORD") +%bigcreditsleft("FIRST SWORD") %blankline() -%bigcredits("PEGASUS BOOTS") +%bigcreditsleft("PEGASUS BOOTS") %blankline() -%bigcredits("FLUTE") +%bigcreditsleft("FLUTE") %blankline() -%bigcredits("MIRROR") +%bigcreditsleft("MIRROR") %blankline() %blankline() @@ -569,23 +579,23 @@ print "Line number: !CLINE | Expected: 302" %blankline() %blankline() -%bigcredits("SWORDLESS /13") +%bigcreditsleft("SWORDLESS /13") %blankline() -%bigcredits("FIGHTER'S SWORD /13") +%bigcreditsleft("FIGHTER'S SWORD /13") %blankline() -%bigcredits("MASTER SWORD /13") +%bigcreditsleft("MASTER SWORD /13") %blankline() -%bigcredits("TEMPERED SWORD /13") +%bigcreditsleft("TEMPERED SWORD /13") %blankline() -%bigcredits("GOLD SWORD /13") +%bigcreditsleft("GOLD SWORD /13") %blankline() %blankline() @@ -595,31 +605,31 @@ print "Line number: !CLINE | Expected: 302" %blankline() %blankline() -%bigcredits("GT BIG KEY /22") +%bigcreditsleft("GT BIG KEY /22") %blankline() -%bigcredits("BONKS") +%bigcreditsleft("BONKS") %blankline() -%bigcredits("SAVE AND QUITS") +%bigcreditsleft("SAVE AND QUITS") %blankline() -%bigcredits("DEATHS") +%bigcreditsleft("DEATHS") %blankline() -%bigcredits("FAERIE REVIVALS") +%bigcreditsleft("FAERIE REVIVALS") %blankline() -%bigcredits("TOTAL MENU TIME") +%bigcreditsleft("TOTAL MENU TIME") %blankline() -%bigcredits("TOTAL LAG TIME") +%bigcreditsleft("TOTAL LAG TIME") %blankline() %blankline() @@ -644,11 +654,11 @@ print "Line number: !CLINE | Expected: 302" %preline() %preline() %preline() -%bigcredits("COLLECTION RATE /216") +%bigcreditsleft("COLLECTION RATE /216") %blankline() -%bigcredits("TOTAL TIME") +%bigcreditsleft("TOTAL TIME") %blankline()