fix:blacklist命名错误

This commit is contained in:
Elaina 2024-10-16 20:51:51 +08:00
parent 7258885edf
commit ef471333c8
3 changed files with 10 additions and 10 deletions

View file

@ -16,10 +16,10 @@ agent = ["无需增调干员", "先锋", "近卫", "重装", "术士", "狙击",
class SSSDROPSolver(SceneGraphSolver):
def run(self, drops: list, black_list: list = []) -> bool:
def run(self, drops: list, blacklist: list = []) -> bool:
self.drops = drops
self.choose = False
self.black_list = set(black_list)
self.blacklist = set(blacklist)
self.transelate_name()
super().run()
@ -70,7 +70,7 @@ class SSSDROPSolver(SceneGraphSolver):
logger.info(match_opers.keys())
res = {}
for name, scope in match_opers.items():
if name and name not in self.black_list:
if name and name not in self.blacklist:
res[translate[agent_list[name]["profession"]]] = self.get_pos(
ss(1.5, 1.5, scope)
)