Skip to content

Commit

Permalink
stage
Browse files Browse the repository at this point in the history
  • Loading branch information
H4M5TER committed Jun 6, 2024
1 parent 0e98e27 commit 7615aab
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 91 deletions.
3 changes: 2 additions & 1 deletion game/RiftWizard2.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def __init__(self, desc):
"spell": Color(80, 175, 255),
"unit": Color(249, 210, 109),
})
tooltip_colors.update(dict([(f"r_{t}", tooltip_colors[t]) for t in loc.damage_type_list]))

tt_attrs = [
'damage',
Expand Down Expand Up @@ -4338,7 +4339,7 @@ def draw_wrapped_string(self, string, surface, x, y, width, color=(255, 255, 255
word = loc.tags.get(token, word)
if len(tokens) > 1:
token = tokens[1].lower()
if re.search("^\d+$", tokens[0]):
if re.search("^-?\d+$", tokens[0]):
if token in loc.tags_format:
word = loc.tags_format[token] % tokens[0]
else:
Expand Down
Loading

0 comments on commit 7615aab

Please sign in to comment.