Skip to content

Commit

Permalink
Fix: use traditional method for TW server
Browse files Browse the repository at this point in the history
  • Loading branch information
guoh064 committed Feb 13, 2024
1 parent 4ba5979 commit 9a6e2f7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions module/campaign/gems_farming.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ def triggered_stop_condition(self, oil_check=True):

return super().triggered_stop_condition(oil_check=oil_check)

def _server_support_equipment_code(self):
return self.config.SERVER in ['cn', 'en', 'jp']

def run(self, name, folder='campaign_main', mode='normal', total=0):
"""
Args:
Expand Down Expand Up @@ -440,9 +443,15 @@ def run(self, name, folder='campaign_main', mode='normal', total=0):
if self._trigger_lv32 or self._trigger_emotion:
success = True
if self.change_flagship:
success = self.flagship_change_new()
if self._server_support_equipment_code():
success = self.flagship_change_new()
else:
success = self.flagship_change()
if self.change_vanguard:
success = success and self.vanguard_change_new()
if self._server_support_equipment_code():
success = success and self.vanguard_change_new()
else:
success = self.vanguard_change()

if is_limit and self.config.StopCondition_RunCount <= 0:
logger.hr('Triggered stop condition: Run count')
Expand Down

0 comments on commit 9a6e2f7

Please sign in to comment.