Various Fixes.
generified the Worldboss module; removed the spammy-section as of currently, will be readded at a later stage.
This commit is contained in:
+4
-2
@@ -113,7 +113,8 @@ class Text:
|
||||
return count
|
||||
|
||||
def zfill(self, numb, highest_number):
|
||||
return f"<black>{(self.get_count_digits(highest_number) - self.get_count_digits(numb)) * '0'}</black>{numb}"
|
||||
val = (self.get_count_digits(highest_number) - self.get_count_digits(numb))
|
||||
return f"{('<black>'+ (val * '0')+'</black>') if val > 0 else ''}{numb}"
|
||||
|
||||
def format_pagination(self, data, offset, page, formatter, title, no_data_msg, cmd, page_size=10, headline=""):
|
||||
selected = data[offset:offset + page_size]
|
||||
@@ -330,7 +331,7 @@ class Text:
|
||||
def format_message(self, msg, replace_br=True):
|
||||
for t in ["</header>", "</header2>", "</highlight>", "</notice>", "</black>", "</white>", "</yellow>",
|
||||
"</blue>", "</green>", "</red>", "</orange>", "</grey>", "</cyan>",
|
||||
"</violet>", "</neutral>", "</omni>", "</clan>", "</unknown>"]:
|
||||
"</violet>", "</neutral>", "</omni>", "</clan>", "</unknown>", "</gold>"]:
|
||||
msg = msg.replace(t, "</font>")
|
||||
if replace_br:
|
||||
msg = msg.replace("<br>", "\n")
|
||||
@@ -344,6 +345,7 @@ class Text:
|
||||
.replace("<yellow>", "<font color=#FFFF00>") \
|
||||
.replace("<blue>", "<font color=#8CB5FF>") \
|
||||
.replace("<green>", "<font color=#00DE42>") \
|
||||
.replace("<gold>", "<font color=#FFD700>") \
|
||||
.replace("<red>", "<font color=#FF0000>") \
|
||||
.replace("<orange>", "<font color=#FCA712>") \
|
||||
.replace("<grey>", "<font color=#C3C3C3>") \
|
||||
|
||||
Reference in New Issue
Block a user