Fix some bugs

- Second try to fix a bug about API
- Fix a bug that the `prog boost` shows the incorrect value
- Fix a bug that the rewards can be get repeatedly in World Mode
- Fix a bug that second tube of blood of the world boss won't change
This commit is contained in:
Lost-MSth
2022-08-11 22:38:26 +08:00
parent 27ee147989
commit 732947a3f0
4 changed files with 8 additions and 6 deletions

View File

@@ -199,7 +199,7 @@ class UserMap(Map):
@property
def rewards_for_climbing(self) -> list:
rewards = []
for i in range(self.prev_position, self.curr_position+1):
for i in range(self.prev_position+1, self.curr_position+1):
step = self.steps[i]
if step.items:
rewards.append(
@@ -209,7 +209,7 @@ class UserMap(Map):
def rewards_for_climbing_to_dict(self) -> list:
rewards = []
for i in range(self.prev_position, self.curr_position+1):
for i in range(self.prev_position+1, self.curr_position+1):
step = self.steps[i]
if step.items:
rewards.append(