add history action

This commit is contained in:
bridge
2025-09-02 21:19:58 +08:00
parent 1f5c4032f5
commit 0f9f5f35f7
4 changed files with 18 additions and 5 deletions

View File

@@ -182,6 +182,12 @@ class Avatar:
def is_in_region(self, region: Region) -> bool:
return self.tile.region == region
def get_history_action_pairs_str(self) -> str:
"""
获取历史动作对的字符串
"""
return "\n".join([f"{action.__class__.__name__}: {action_params}" for action, action_params in self.history_action_pairs])
def get_new_avatar_from_ordinary(world: World, current_month_stamp: MonthStamp, name: str, age: Age):
"""
从凡人中来的新修士