Skip to content

Commit

Permalink
Refactor mood manipulation in CharacterService
Browse files Browse the repository at this point in the history
  • Loading branch information
KiloOscarSix committed Jan 31, 2024
1 parent de3d63c commit b92b781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CharacterService_ren.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ def add_mood(character: NonPlayableCharacter, mood: Moods) -> None:
character.mood = mood
return

character.mood = character.mood | mood
character.mood |= mood

@staticmethod
def remove_mood(character: NonPlayableCharacter, mood: Moods) -> None:
character.mood = character.mood & ~mood
character.mood &= ~mood

@staticmethod
def get_profile_pictures(character_name: str) -> tuple[str, ...]:
Expand Down

0 comments on commit b92b781

Please sign in to comment.