修改处理两个目标的bug
This commit is contained in:
parent
6f3a01eb3f
commit
45d1874867
|
@ -47,7 +47,7 @@ class DealChat(Act):
|
||||||
if len(w)>1:
|
if len(w)>1:
|
||||||
for x in w[1:]:
|
for x in w[1:]:
|
||||||
if x != "":
|
if x != "":
|
||||||
goal_set.add(x[0] + ")")
|
goal_set.add(x[1:] + ")")
|
||||||
self.function_success = True
|
self.function_success = True
|
||||||
except:
|
except:
|
||||||
print("参数解析错误")
|
print("参数解析错误")
|
||||||
|
|
|
@ -458,6 +458,7 @@ class Scene:
|
||||||
def customer_say(self,name,sentence,show_bubble=True):
|
def customer_say(self,name,sentence,show_bubble=True):
|
||||||
if isinstance(name,int):
|
if isinstance(name,int):
|
||||||
name = self.walker_index2mem(name)
|
name = self.walker_index2mem(name)
|
||||||
|
|
||||||
print(f'{name} say: {sentence}')
|
print(f'{name} say: {sentence}')
|
||||||
if show_bubble:
|
if show_bubble:
|
||||||
self.walker_bubble(name,sentence)
|
self.walker_bubble(name,sentence)
|
||||||
|
|
Loading…
Reference in New Issue