Skip to content

Commit

Permalink
fixed missing target
Browse files Browse the repository at this point in the history
  • Loading branch information
KiloOscarSix committed Apr 24, 2023
1 parent 3911d8d commit f9beca0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CharacterService_ren.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
class CharacterService:
@staticmethod
def get_relationship(
character: NonPlayableCharacter, target: PlayableCharacter
character: NonPlayableCharacter, target: PlayableCharacter = None
) -> Relationship:
if target is None:
target = store.mc

if not hasattr(character, "relationships"):
character.relationships = {}

Expand Down

0 comments on commit f9beca0

Please sign in to comment.