Skip to content

Commit

Permalink
设置铅踝心情范围
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoZuohong committed Sep 28, 2023
1 parent bb16ab9 commit 5071335
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions arknights_mower/utils/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,20 @@ def init_mood_limit(self):
elif self.config.ling_xi == 0:
self.set_mood_limit(group_name, lower_limit=0)
finished.append(self.operators[name].group)

# 设置铅踝心情阈值
# 三种情况:
# 1. 铅踝不是主力:不管
# 2. 铅踝是红云组主力,设置心情上限 12、下限 8,效率 37%
# 3. 铅踝是普通主力:设置心情下限 20,效率 30%
TOTTER = "铅踝"
VERMEIL = "红云"
if TOTTER in self.operators and self.operators[TOTTER].operator_type == "high":
if VERMEIL in self.operators and self.operators[VERMEIL].operator_type == "high" and self.operators[VERMEIL].room == self.operators[TOTTER].room:
self.set_mood_limit(TOTTER, upper_limit=12, lower_limit=8)
else:
self.set_mood_limit(TOTTER, upper_limit=24, lower_limit=20)


def evaluate_expression(self, expression):
try:
Expand Down

0 comments on commit 5071335

Please sign in to comment.