Fix crash on scarlet police branch

This commit is contained in:
Anthony Samms
2025-11-21 01:16:50 -05:00
parent 659b8c4826
commit 59753e5ea5

View File

@@ -910,19 +910,25 @@ class Player:
self.branch_indicator.level_down('expert')
else:
self.branch_indicator.level_up('expert')
if self.branch_m:
self.branch_m.pop(0)
if self.branch_n:
self.branch_n.pop(0)
elif self.branch_condition_count >= m_req:
self.merge_branch_section(self.branch_m.pop(0), current_ms)
if self.branch_indicator is not None and self.branch_indicator.difficulty != 'master':
self.branch_indicator.level_up('master')
if self.branch_n:
self.branch_n.pop(0)
if self.branch_e:
self.branch_e.pop(0)
else:
self.merge_branch_section(self.branch_n.pop(0), current_ms)
if self.branch_indicator is not None and self.branch_indicator.difficulty != 'normal':
self.branch_indicator.level_down('normal')
if self.branch_m:
self.branch_m.pop(0)
if self.branch_e:
self.branch_e.pop(0)
if self.branch_indicator is not None:
logger.info(f"Branch set to {self.branch_indicator.difficulty} based on conditions {self.branch_condition_count}, {e_req, m_req}")