Skip to content

Commit

Permalink
Refactor: Change type of list_of_relations in NPCRelations
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Sep 18, 2023
1 parent 5f34c03 commit 85b1070
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/npc_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ class NPCPsychology:
fears: list[str]
interests: list[str]

@dataclass()
class NPCRelations:
"""The relations for non-player characters (NPCs)."""
list_of_relations: list[str]

@dataclass()
class NPCRelation:
Expand All @@ -100,6 +96,12 @@ class NPCRelation:
attitude: float
still_exist: bool


@dataclass()
class NPCRelations:
"""The relations for non-player characters (NPCs)."""
list_of_relations: list[NPCRelation]

@dataclass()
class NPC:
"""Class for non-player characters (NPCs)."""
Expand Down

0 comments on commit 85b1070

Please sign in to comment.