mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-29 15:59:42 +02:00
update player profile with const
This commit is contained in:
parent
a466bc9243
commit
fe0e62806d
3 changed files with 16 additions and 15 deletions
|
|
@ -166,9 +166,9 @@ class WerewolfExtEnv(ExtEnv):
|
|||
"""init players using different roles' num"""
|
||||
role_objs = []
|
||||
for role_obj in role_uniq_objs:
|
||||
if "Villager" in str(role_obj):
|
||||
if RoleType.VILLAGER.value in str(role_obj):
|
||||
role_objs.extend([role_obj] * num_villager)
|
||||
elif "Werewolf" in str(role_obj):
|
||||
elif RoleType.WEREWOLF.value in str(role_obj):
|
||||
role_objs.extend([role_obj] * num_werewolf)
|
||||
else:
|
||||
role_objs.append(role_obj)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue