add hp self recover

This commit is contained in:
bridge
2025-10-16 02:22:14 +08:00
parent 7ebf266e9e
commit d62696db68
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ class DualCultivation(MutualAction):
return False
# 基于 effects 判断是否允许
effects = self.avatar.effects
legal_actions = effects["legal_actions"]
legal_actions = effects.get("legal_actions", [])
if not isinstance(legal_actions, list) or "DualCultivation" not in legal_actions:
return False
target = self._get_target_avatar(target_avatar)

View File

@@ -15,7 +15,7 @@ ai:
max_decide_num: 4
game:
init_npc_num: 8
init_npc_num: 3
sect_num: 2 # init_npc_num大于sect_num时会随机选择sect_num个宗门
npc_birth_rate_per_month: 0.001