From f6bca2bfa302bde5f0e11bf278b68b5bacaee722 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 21 May 2023 13:52:09 +0100 Subject: [PATCH] Add generalised roman numerals for player levels --- build.gradle | 3 +++ lib/Romanizer-1.0.0.jar | Bin 0 -> 12248 bytes .../spellbook/SpellbookProfilePageContent.java | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 lib/Romanizer-1.0.0.jar diff --git a/build.gradle b/build.gradle index 15d181af..f72fb497 100644 --- a/build.gradle +++ b/build.gradle @@ -61,6 +61,9 @@ dependencies { modApi "com.sollace:fabwork:${project.fabwork_version}" include "com.sollace:fabwork:${project.fabwork_version}" + compileOnly files('lib/Romanizer-1.0.0.jar') + include files('lib/Romanizer-1.0.0.jar') + modCompileOnly "com.terraformersmc:modmenu:${project.modmenu_version}" modCompileOnly "dev.emi:trinkets:${project.trinkets_version}" diff --git a/lib/Romanizer-1.0.0.jar b/lib/Romanizer-1.0.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..fea9f62c65fb5af25a826e1d352296da282f4ed2 GIT binary patch literal 12248 zcmb7q1y~(f5-tRH2=4Cg?h@SH-QAr)ut1RD?(QDk-QC?T?iPYPGPAq0leaT(Ufr*u z?{};I>eHvXPW7o@UJ3*h8VCpy5{O>CUKQv~-u?XZCQxsOjHt38t%R%?JqVEee-vTf z6l?t6ongNzV7?tF|E(w^C@Uc*s-#ROBX%t_IwCDaOE(24MN2h4I#H|0Fw4BTx4rl7 zzrdh>@e29|W@KmcCx^f4!2V0e$@z>`*0RsUsf&c+A{1X6SJ6l&1M`sg9IwNZXC#QJD5!r456kZT< zkI!MD=L`KnSS_Rh{USSI2i^Scs!=#yIK zaFWCV3SB3!NfAd9mvTiKC`_tcOs*s)q5K(nxly$)-spo?A%rh#9R#R&C^J7aatt>?C_6$iz;h)nL|y&*e}&I6h=9 z>oi7PTf*}TvCsJ(CR=&95x6#9Y$Nsqc?GPFMG1wFO4cETpji>lC9*B7@D`@(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zD{JNtrHnwG|9!)M?SB2?LK69(xcF1I<^Sr1{W_puyE%V&J9y)!|Gx+HCvX3I zK)-Im{NW-2_n)}<(}v8i*Z*t1`UiMF$zOs0QN7AbfxX2F5D?Pa$M7u*^{IY-`#-a7 BPTc?i literal 0 HcmV?d00001 diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java index 8c12a1dd..0fadc54e 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java @@ -143,7 +143,7 @@ public class SpellbookProfilePageContent extends DrawableHelper implements Spell font.draw(matrices, "Mana", -font.getWidth("Mana") / 2, y, SpellbookScreen.TITLE_COLOR); font.draw(matrices, manaString, -font.getWidth(manaString) / 2, y += font.fontHeight, SpellbookScreen.TITLE_COLOR); - Text levelString = I18n.hasTranslation("enchantment.level." + (currentLevel + 1)) ? Text.translatable("enchantment.level." + (currentLevel + 1)) : Text.literal(currentLevel >= 999 ? ">999" : "" + (currentLevel + 1)); + Text levelString = Text.literal(Romanizer.romanize(currentLevel + 1)); matrices.translate(-font.getWidth(levelString), -35, 0); matrices.scale(2F, 2F, 1);