1
0
mirror of synced 2024-12-18 05:45:51 +01:00

converters.py: Fix bug with HP byte

This commit is contained in:
Viv 2023-07-19 22:57:27 -04:00
parent 1777100d3d
commit 3704d0a627

View File

@ -320,7 +320,7 @@ def convert_tja_to_fumen(tja):
# Set song-specific metadata
fumen.header.b512_b515_number_of_measures = len(fumen.measures)
fumen.header.b432_b435_has_branches = int(all([len(b) for b in processed_tja_branches.values()]))
fumen.header.set_hp_bytes(total_notes, tja.course, tja.level)
fumen.header.set_hp_bytes(total_notes['normal'], tja.course, tja.level)
# If song has only drumroll branching conditions, then only drumrolls should contribute to branching
if all([condition[0] == 'r' for condition in branch_conditions]):