fix move step bug

This commit is contained in:
bridge
2025-09-18 23:05:10 +08:00
parent 40bc4505ab
commit fa1bc3f0e9
2 changed files with 4 additions and 4 deletions

View File

@@ -377,7 +377,7 @@ class Avatar:
"""
获取角色的移动步长
"""
return self.cultivation_progress.get_month_step()
return self.cultivation_progress.get_move_step()
def get_new_avatar_from_ordinary(world: World, current_month_stamp: MonthStamp, name: str, age: Age):
"""

View File

@@ -40,7 +40,7 @@ LEVEL_TO_BREAK_THROUGH = {
90: Realm.Nascent_Soul,
}
REALM_TO_MONTH_STEP = {
REALM_TO_MOVE_STEP = {
Realm.Qi_Refinement: 1,
Realm.Foundation_Establishment: 2,
Realm.Core_Formation: 2,
@@ -80,13 +80,13 @@ class CultivationProgress:
return stage
return Stage.Early_Stage
def get_month_step(self) -> int:
def get_move_step(self) -> int:
"""
每月能够移动的距离,
练气筑基为1
金丹元婴为2
"""
return REALM_TO_MONTH_STEP[self.realm]
return REALM_TO_MOVE_STEP[self.realm]
def __str__(self) -> str:
can_break_through = self.can_break_through()