relation_frequency为int时,如果配置了较小的值会出现除以0的问题

pull/1182/head
ShinKanji 2025-08-15 09:51:12 +08:00 committed by GitHub
parent 44fff4ed8a
commit 5a1239f0f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ class RelationshipConfig(ConfigBase):
enable_relationship: bool = True enable_relationship: bool = True
"""是否启用关系系统""" """是否启用关系系统"""
relation_frequency: int = 1 relation_frequency: float = 1
"""关系频率,麦麦构建关系的速度""" """关系频率,麦麦构建关系的速度,值越大,构建的频率越高"""
@dataclass @dataclass