1
0
mirror of synced 2025-02-17 11:08:36 +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: else:
self.order = "<" self.order = "<"
def set_hp_bytes(self, n_notes: int, difficulty: str, def set_hp_bytes(self, n_notes: int, difficulty: str, stars: int) -> None:
stars: int) -> None:
"""Compute header bytes related to the soul gauge (HP) behavior.""" """Compute header bytes related to the soul gauge (HP) behavior."""
# Note: Ura Oni is equivalent to Oni for soul gauge behavior # Note: Ura Oni is equivalent to Oni for soul gauge behavior
difficulty = 'Oni' if difficulty in ['Ura', 'Edit'] else difficulty difficulty = 'Oni' if difficulty in ['Ura', 'Edit'] else difficulty