1
0
mirror of synced 2024-11-27 22:40:49 +01:00

classes.py: Condense set_hp_bytes

This commit is contained in:
Viv 2023-07-31 09:04:20 -04:00
parent f805416831
commit 2ad2e639e5

View File

@ -296,8 +296,7 @@ class FumenHeader:
else:
self.order = "<"
def set_hp_bytes(self, n_notes: int, difficulty: str,
stars: int) -> None:
def set_hp_bytes(self, n_notes: int, difficulty: str, stars: int) -> None:
"""Compute header bytes related to the soul gauge (HP) behavior."""
# Note: Ura Oni is equivalent to Oni for soul gauge behavior
difficulty = 'Oni' if difficulty in ['Ura', 'Edit'] else difficulty