Spaces:
Running
Running
humanda5
commited on
Commit
·
ce3d575
1
Parent(s):
e80a3bc
에러 수정
Browse files
npc_social_network/npc/npc_base.py
CHANGED
@@ -90,7 +90,7 @@ class NPC:
|
|
90 |
|
91 |
# 행동 관리자
|
92 |
self.behavior = BehaviorManager()
|
93 |
-
self.planner =
|
94 |
|
95 |
# 내부: float 감정 수치 관리용 버퍼
|
96 |
self._emotion_buffer = self.emotion.get_buffer()
|
|
|
90 |
|
91 |
# 행동 관리자
|
92 |
self.behavior = BehaviorManager()
|
93 |
+
self.planner = PlannerManager(self)
|
94 |
|
95 |
# 내부: float 감정 수치 관리용 버퍼
|
96 |
self._emotion_buffer = self.emotion.get_buffer()
|
npc_social_network/npc/npc_relationship.py
CHANGED
@@ -20,7 +20,7 @@ class RelationshipManager:
|
|
20 |
def __init__(self, owner_npc: "NPC"):
|
21 |
self.owner_npc = owner_npc
|
22 |
# 관계 사전: {상대방 이름: SocialProfile 객체}
|
23 |
-
self.relationships
|
24 |
|
25 |
def _get_or_create_profile(self, target_name: str) -> SocialProfile:
|
26 |
"""대상의 프로필이 없으면 새로 생성하고 반환"""
|
|
|
20 |
def __init__(self, owner_npc: "NPC"):
|
21 |
self.owner_npc = owner_npc
|
22 |
# 관계 사전: {상대방 이름: SocialProfile 객체}
|
23 |
+
self.relationships: dict[str, SocialProfile] = {}
|
24 |
|
25 |
def _get_or_create_profile(self, target_name: str) -> SocialProfile:
|
26 |
"""대상의 프로필이 없으면 새로 생성하고 반환"""
|