Skip to content

fix(emotion): 取消任务后按离线时间恢复心情 - #1

Merged
a2893005741 merged 5 commits into
masterfrom
codex/fix-emotion-recovery-on-config-load
Aug 18, 2026
Merged

fix(emotion): 取消任务后按离线时间恢复心情#1
a2893005741 merged 5 commits into
masterfrom
codex/fix-emotion-recovery-on-config-load

Conversation

@a2893005741

@a2893005741 a2893005741 commented Aug 18, 2026

Copy link
Copy Markdown
Owner

修改内容

  • 在配置加载时按实际经过时间刷新主线、活动图和公海舰队心情。
  • 统一战斗流程与配置加载流程使用的恢复速度和上限规则。
  • 保留不足 1 点的恢复余数,并同步时间戳,避免重复累计。
  • 增加取消任务后离线恢复、余数累计和公海舰队恢复测试。

问题原因

任务取消后不会再进入 Emotion.update(),而 WebUI 重新打开时只读取持久化的旧值,因此心情会长期停留在取消瞬间。现在配置加载会基于 ValueRecord 和恢复设置计算当前值。

影响

长时间停用主线或活动任务后,重新打开配置或重新启用任务时会看到按离线时间恢复后的正确心情值;达到上限时显示 119 或 150。

验证

  • uv run python -m unittest tests.test_emotion_recovery tests.test_webui_config_search tests.test_webui_dashboard tests.test_webui_lifecycle(25/25)
  • uv run ruff check . --select E9,F63,F7,F82 --ignore F821,F722
  • uv run python -m compileall -q module/config/emotion_recovery.py module/config/config_updater.py module/combat/emotion.py tests/test_emotion_recovery.py
  • uv run -m module.config.config_updater(无生成文件差异)

全量测试发现 5 项与本修改无关的测试隔离或既有配置失败,定向测试均通过。

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时,根据离线经过时间恢复舰队和公共舰队的情绪值,包括在任务取消之后。

Enhancements(增强):

  • 将情绪恢复速度、上限以及分数进度处理进行集中管理,使配置加载和战斗更新遵循相同的规则。

Tests(测试):

  • 为以下场景添加离线恢复相关的测试覆盖:上限恢复、跨重载的分数恢复、公共舰队恢复、宿舍上限、模板配置以及非正向(≤0)的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时,根据离线经过时间恢复舰队和公共舰队的情绪值,包括在任务取消之后。

Enhancements(增强):

  • 将情绪恢复速度、上限以及分数进度处理进行集中管理,使配置加载和战斗更新遵循相同的规则。

Tests(测试):

  • 为以下场景添加离线恢复相关的测试覆盖:上限恢复、跨重载的分数恢复、公共舰队恢复、宿舍上限、模板配置以及非正向(≤0)的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(增强):

  • 统一情绪恢复速率、上限和计时规则,以在配置加载和战斗更新中保持一致的行为。
  • 保留情绪恢复的分数进度并更新时间戳,以防止重复累计。

Tests(测试):

  • 为以下场景添加覆盖测试:离线恢复至上限、多次重载间的分数恢复、公共舰队恢复、宿舍上限以及模板配置行为。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时,根据离线经过时间恢复舰队和公共舰队的情绪值,包括在任务取消之后。

Enhancements(增强):

  • 将情绪恢复速度、上限以及分数进度处理进行集中管理,使配置加载和战斗更新遵循相同的规则。

Tests(测试):

  • 为以下场景添加离线恢复相关的测试覆盖:上限恢复、跨重载的分数恢复、公共舰队恢复、宿舍上限、模板配置以及非正向(≤0)的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时,根据离线经过时间恢复舰队和公共舰队的情绪值,包括在任务取消之后。

Enhancements(增强):

  • 将情绪恢复速度、上限以及分数进度处理进行集中管理,使配置加载和战斗更新遵循相同的规则。

Tests(测试):

  • 为以下场景添加离线恢复相关的测试覆盖:上限恢复、跨重载的分数恢复、公共舰队恢复、宿舍上限、模板配置以及非正向(≤0)的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时,根据离线经过时间恢复舰队和公共舰队的情绪值,包括在任务取消之后。

Enhancements(增强):

  • 将情绪恢复速度、上限以及分数进度处理进行集中管理,使配置加载和战斗更新遵循相同的规则。

Tests(测试):

  • 为以下场景添加离线恢复相关的测试覆盖:上限恢复、跨重载的分数恢复、公共舰队恢复、宿舍上限、模板配置以及非正向(≤0)的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时,根据离线经过时间恢复舰队和公共舰队的情绪值,包括在任务取消之后。

Enhancements(增强):

  • 将情绪恢复速度、上限以及分数进度处理进行集中管理,使配置加载和战斗更新遵循相同的规则。

Tests(测试):

  • 为以下场景添加离线恢复相关的测试覆盖:上限恢复、跨重载的分数恢复、公共舰队恢复、宿舍上限、模板配置以及非正向(≤0)的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(增强):

  • 统一情绪恢复速率、上限和计时规则,以在配置加载和战斗更新中保持一致的行为。
  • 保留情绪恢复的分数进度并更新时间戳,以防止重复累计。

Tests(测试):

  • 为以下场景添加覆盖测试:离线恢复至上限、多次重载间的分数恢复、公共舰队恢复、宿舍上限以及模板配置行为。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时,根据离线经过时间恢复舰队和公共舰队的情绪值,包括在任务取消之后。

Enhancements(增强):

  • 将情绪恢复速度、上限以及分数进度处理进行集中管理,使配置加载和战斗更新遵循相同的规则。

Tests(测试):

  • 为以下场景添加离线恢复相关的测试覆盖:上限恢复、跨重载的分数恢复、公共舰队恢复、宿舍上限、模板配置以及非正向(≤0)的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时,根据离线经过时间恢复舰队和公共舰队的情绪值,包括在任务取消之后。

Enhancements(增强):

  • 将情绪恢复速度、上限以及分数进度处理进行集中管理,使配置加载和战斗更新遵循相同的规则。

Tests(测试):

  • 为以下场景添加离线恢复相关的测试覆盖:上限恢复、跨重载的分数恢复、公共舰队恢复、宿舍上限、模板配置以及非正向(≤0)的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug 修复:

  • 在加载配置时(包括任务取消之后),根据离线经过的时间恢复舰队和公共舰队的情绪值。

增强:

  • 将情绪恢复速率、上限以及分数时间(fractional-time)处理集中管理,使配置加载和战斗更新遵循相同的规则。

测试:

  • 增加对以下场景的覆盖:恢复上限、跨重载的分数恢复、公共舰队恢复、宿舍限制、模板配置以及非正数经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

Bug Fixes(错误修复):

  • 在加载配置时(包括任务被取消之后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements(改进):

  • 将情绪恢复速率、上限以及小数进度的处理逻辑集中起来,使配置加载和战斗更新遵循同一套规则。

Tests(测试):

  • 增加以下场景的测试覆盖:受上限约束的恢复、跨多次重载的小数恢复、公共舰队的恢复、宿舍限制、模板配置,以及非正的经过时间。
Original summary in English

Summary by Sourcery

在加载配置期间恢复已持久化的舰队情绪值,并统一离线和在线游戏过程中的恢复行为。

Bug Fixes:

  • 在加载配置时(包括任务取消后),根据离线经过时间恢复舰队和公共舰队的情绪值。

Enhancements:

  • 将情绪恢复速度、上限以及小数进度的处理集中管理,使配置加载与战斗更新遵循相同规则。
  • 保留部分恢复进度并更新时间戳,以防止重复累积。

Tests:

  • 新增对以下场景的测试覆盖:恢复上限、跨重载的小数恢复进度、公共舰队恢复、宿舍上限、模板配置以及非正向经过时间。
Original summary in English

Summary by Sourcery

Restore persisted fleet emotions during configuration loading and unify recovery behavior across offline and active gameplay.

Bug Fixes:

  • Restore fleet and public-fleet emotion values based on elapsed offline time when configurations are loaded, including after task cancellation.

Enhancements:

  • Centralize emotion recovery speeds, caps, and fractional progress handling so configuration loading and combat updates follow the same rules.
  • Preserve partial recovery progress and update timestamps to prevent repeated accumulation.

Tests:

  • Add coverage for capped recovery, fractional recovery across reloads, public-fleet recovery, dormitory limits, template configurations, and non-positive elapsed time.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown

CI 检查报告

检查结果

检查 结果 耗时
Post PR report ➖ unknown -

导入冒烟测试

  • 结果:✅
  • 扫描模块:501(通过 498,已知失败 3,意外失败 0,过期白名单 0)

@sourcery-ai

sourcery-ai Bot commented Aug 18, 2026

Copy link
Copy Markdown

审阅者指南

通过将恢复规则集中到共享工具中,并在配置更新时(包括任务取消后)应用这些规则,同时为离线恢复、上限、分数进度以及公共编队情绪添加测试,使配置加载过程中的情绪恢复与战斗逻辑保持一致。

任务取消后在 config_update 期间进行情绪恢复的时序图

sequenceDiagram
    actor User
    participant ConfigUpdater
    participant recover_emotion_config
    participant _recover_fleet
    participant calculate_emotion_recovery

    User->>ConfigUpdater: config_update(old, is_template=False, now)
    ConfigUpdater->>recover_emotion_config: recover_emotion_config(new, now)
    recover_emotion_config->>_recover_fleet: _recover_fleet(emotion, Fleet1, now)
    _recover_fleet->>calculate_emotion_recovery: calculate_emotion_recovery(value, recover, elapsed, oath, onsen)
    calculate_emotion_recovery-->>_recover_fleet: current, fractional
    _recover_fleet-->>recover_emotion_config: update Fleet1Value, Fleet1Record
    recover_emotion_config-->>ConfigUpdater: updated emotion and public_emotion
    ConfigUpdater-->>User: return new config with offline emotion restored
Loading

文件级变更

变更 详情 文件
将情绪恢复规则集中到共享工具中,并在战斗情绪更新中复用。
  • 将情绪恢复常量和计算逻辑提取到新的共享模块中,以纯函数形式实现。
  • 更新编队战斗情绪逻辑,使其使用共享的恢复速度和计算辅助函数,而不是内联公式。
  • 调整恢复时间计算,使其使用共享的 tick 时长常量。
  • 在记录情绪状态时,通过新的辅助函数返回值来保留情绪恢复的分数进度。
module/base/emotion.py
module/combat/emotion.py
在加载或更新配置数据时应用离线情绪恢复,包括对已取消任务和公共编队。
  • 引入配置级情绪恢复辅助函数,遍历任务配置并根据已过去的时间更新编队/公共情绪值和时间戳。
  • 对模板配置跳过情绪恢复,同时保留其哨兵记录时间戳。
  • 将配置级恢复逻辑集成到主配置更新路径中,并引入可注入的当前时间参数以便测试。
  • 对非正数的已过去时间或无效数据进行防护,避免重复计数或错误恢复。
module/config/emotion_recovery.py
module/config/config_updater.py
添加聚焦测试以验证离线情绪恢复行为及边界情况。
  • 添加单元测试,覆盖主编队/活动编队/公共编队在不同宿舍状态下恢复到最大值的情况。
  • 测试在多次配置重载之间分数恢复的延续,以及其对时间戳的影响。
  • 验证模板配置会跳过恢复,以及记录时间戳不前进或在未来时不会改变情绪值。
tests/test_emotion_recovery.py

技巧与命令

与 Sourcery 交互

  • 触发新审阅: 在拉取请求中评论 @sourcery-ai review
  • 继续讨论: 直接回复 Sourcery 的审阅评论。
  • 从审阅评论生成 GitHub issue: 通过回复审阅评论,让 Sourcery 从该评论创建一个 issue。你也可以回复审阅评论 @sourcery-ai issue 来从中创建 issue。
  • 生成拉取请求标题: 在拉取请求标题中任意位置写上 @sourcery-ai 以随时生成标题。你也可以在拉取请求中评论 @sourcery-ai title 来(重新)生成标题。
  • 生成拉取请求摘要: 在拉取请求正文中任意位置写上 @sourcery-ai summary,即可在对应位置生成 PR 摘要。你也可以在拉取请求中评论 @sourcery-ai summary 来(重新)生成摘要。
  • 生成审阅者指南: 在拉取请求中评论 @sourcery-ai guide,即可(重新)生成审阅者指南。
  • 解决所有 Sourcery 评论: 在拉取请求中评论 @sourcery-ai resolve,以解决所有 Sourcery 评论。如果你已经处理完所有评论且不想再看到它们,这将非常有用。
  • 忽略所有 Sourcery 审阅: 在拉取请求中评论 @sourcery-ai dismiss,以忽略所有现有的 Sourcery 审阅。特别适用于你想从头开始一次新审阅的情况——别忘了再评论 @sourcery-ai review 来触发新的审阅!

自定义你的体验

访问你的 控制面板 来:

  • 启用或禁用审阅功能,例如 Sourcery 生成的拉取请求摘要、审阅者指南等。
  • 更改审阅语言。
  • 添加、移除或编辑自定义审阅指令。
  • 调整其他审阅设置。

获取帮助

Original review guide in English

Reviewer's Guide

Aligns emotion recovery during config loading with combat logic by centralizing recovery rules in shared utilities, applying them when configs are updated (including after task cancellation), and adding tests for offline recovery, caps, fractional progress, and public fleet emotion.

Sequence diagram for emotion recovery during config_update after task cancellation

sequenceDiagram
    actor User
    participant ConfigUpdater
    participant recover_emotion_config
    participant _recover_fleet
    participant calculate_emotion_recovery

    User->>ConfigUpdater: config_update(old, is_template=False, now)
    ConfigUpdater->>recover_emotion_config: recover_emotion_config(new, now)
    recover_emotion_config->>_recover_fleet: _recover_fleet(emotion, Fleet1, now)
    _recover_fleet->>calculate_emotion_recovery: calculate_emotion_recovery(value, recover, elapsed, oath, onsen)
    calculate_emotion_recovery-->>_recover_fleet: current, fractional
    _recover_fleet-->>recover_emotion_config: update Fleet1Value, Fleet1Record
    recover_emotion_config-->>ConfigUpdater: updated emotion and public_emotion
    ConfigUpdater-->>User: return new config with offline emotion restored
Loading

File-Level Changes

Change Details Files
Centralize emotion recovery rules into shared utilities and reuse them in combat emotion updates.
  • Extract emotion recovery constants and calculations into a new shared module with pure functions.
  • Update fleet combat emotion logic to use the shared recovery speed and calculation helpers instead of inlined formulas.
  • Adjust time-to-recovery calculations to use the shared tick duration constant.
  • Preserve fractional recovery progress using the new helper return values when recording emotion state.
module/base/emotion.py
module/combat/emotion.py
Apply offline emotion recovery when loading or updating configuration data, including for cancelled tasks and public fleets.
  • Introduce a config-level emotion recovery helper that walks task configs and updates fleet/public emotion values and timestamps based on elapsed time.
  • Skip emotion recovery for template configurations while keeping their sentinel record timestamps.
  • Integrate the config-level recovery into the main config update path, with an injectable current-time parameter for tests.
  • Guard against non-positive elapsed time or invalid data to avoid double-counting or mis-recovery.
module/config/emotion_recovery.py
module/config/config_updater.py
Add focused tests to validate offline emotion recovery behavior and edge cases.
  • Add unit tests that cover recovery to maximum values for main/event/public fleets in different dormitory states.
  • Test fractional recovery carry-over across multiple config reloads and its effect on timestamps.
  • Verify that template configs skip recovery and that non-advancing or future record timestamps do not change emotion values.
tests/test_emotion_recovery.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - 我发现了 2 个问题

给 AI Agent 的提示
请根据这次代码审查中的评论进行修改:

## 单条评论

### 评论 1
<location path="module/config/emotion_recovery.py" line_range="54" />
<code_context>
+        onsen=bool(group.get(f'{prefix}Onsen', False)),
+    )
+    maximum = DIC_RECOVER_MAX[recover]
+    recovery = speed * elapsed / 360
+    recovered_points = int(recovery)
+    new_value = min(max(int(value), 0) + recovered_points, maximum)
</code_context>
<issue_to_address>
**建议:** 避免对 `360` 写死常量,并在语义上明确地将该计算与 6 分钟间隔关联起来。

`360` 表示 6 分钟心跳间隔对应的秒数。为了降低脆弱性,并在该间隔变化时仍能保持恢复计算的一致性,建议提取一个具名常量(例如 `SECONDS_PER_TICK = 6 * 60`),并在所有依赖该值的恢复逻辑中复用它。

建议实现:

```python
    maximum = DIC_RECOVER_MAX[recover]
    recovery = speed * elapsed / SECONDS_PER_TICK
    recovered_points = int(recovery)
    new_value = min(max(int(value), 0) + recovered_points, maximum)

```

```python
    fractional = recovery - recovered_points
    record_time = now.replace(microsecond=0)
    if fractional > 0:
        record_time -= timedelta(seconds=fractional * SECONDS_PER_TICK / speed)

```

为了完整落实该建议,你还应该:
1. 定义一个模块级常量,例如在 `emotion_recovery.py` 顶部附近:
   `SECONDS_PER_TICK = 6 * 60  # 6-minute tick interval in seconds`
2. 如果该模块(或相关模块)中还有其他地方隐式假设了 6 分钟 / 360 秒的间隔,请将它们更新为使用 `SECONDS_PER_TICK`,以保持一致性。
</issue_to_address>

### 评论 2
<location path="tests/test_emotion_recovery.py" line_range="22-31" />
<code_context>
+            },
+        }
+
+        new = ConfigUpdater().config_update(old, now=self.now)
+
+        self.assertEqual(new['Main']['Emotion']['Fleet1Value'], 119)
+        self.assertEqual(new['Main']['Emotion']['Fleet1Record'], self.now)
+
+    def test_config_reload_preserves_fractional_recovery_time(self):
</code_context>
<issue_to_address>
**建议(测试):** 增加一个测试,以验证在 `is_template=True` 时会跳过情绪恢复逻辑,并保持模板配置不变。

鉴于 `ConfigUpdater.config_update` 现在会接收 `now`,并且只有在 `is_template``False` 时才会调用 `recover_emotion_config`,请新增一个测试:在传入 `is_template=True` 的情况下,使用一个包含情绪字段的 `old` 配置,并断言 `Value``Record` 都保持不变。这样可以防止未来的修改不小心对模板配置应用恢复逻辑。

```suggestion
        }

        new = ConfigUpdater().config_update(old, now=self.now)

        self.assertEqual(new['Main']['Emotion']['Fleet1Value'], 119)
        self.assertEqual(new['Main']['Emotion']['Fleet1Record'], self.now)

    def test_template_config_skips_emotion_recovery(self):
        old = {
            'Main': {
                'Emotion': {
                    'Fleet1Value': 39,
                    'Fleet1Record': self.now - timedelta(hours=12),
                    'Fleet1Recover': 'not_in_dormitory',
                    'Fleet1Oath': False,
                    'Fleet1Onsen': False,
                },
            },
        }

        new = ConfigUpdater().config_update(old, now=self.now, is_template=True)

        self.assertEqual(new['Main']['Emotion']['Fleet1Value'], old['Main']['Emotion']['Fleet1Value'])
        self.assertEqual(new['Main']['Emotion']['Fleet1Record'], old['Main']['Emotion']['Fleet1Record'])

    def test_config_reload_preserves_fractional_recovery_time(self):
        old = {
            'Event': {
```
</issue_to_address>

Sourcery 对开源项目免费使用——如果你觉得我们的审查有帮助,请考虑分享它们 ✨
帮我变得更有用!请在每条评论上点击 👍 或 👎,我会根据你的反馈改进后续的审查。
Original comment in English

Hey - I've found 2 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="module/config/emotion_recovery.py" line_range="54" />
<code_context>
+        onsen=bool(group.get(f'{prefix}Onsen', False)),
+    )
+    maximum = DIC_RECOVER_MAX[recover]
+    recovery = speed * elapsed / 360
+    recovered_points = int(recovery)
+    new_value = min(max(int(value), 0) + recovered_points, maximum)
</code_context>
<issue_to_address>
**suggestion:** Avoid hardcoding `360` and tie the calculation explicitly to the 6-minute interval semantics.

`360` represents the 6‑minute tick interval in seconds. To reduce brittleness and keep recovery calculations consistent if this interval changes, extract a named constant (e.g. `SECONDS_PER_TICK = 6 * 60`) and reuse it wherever recovery logic depends on this value.

Suggested implementation:

```python
    maximum = DIC_RECOVER_MAX[recover]
    recovery = speed * elapsed / SECONDS_PER_TICK
    recovered_points = int(recovery)
    new_value = min(max(int(value), 0) + recovered_points, maximum)

```

```python
    fractional = recovery - recovered_points
    record_time = now.replace(microsecond=0)
    if fractional > 0:
        record_time -= timedelta(seconds=fractional * SECONDS_PER_TICK / speed)

```

To fully implement the suggestion, you should also:
1. Define a module-level constant, e.g. near the top of `emotion_recovery.py`:
   `SECONDS_PER_TICK = 6 * 60  # 6-minute tick interval in seconds`
2. If there are any other parts of this module (or related modules) that implicitly assume a 6-minute / 360-second interval, update them to use `SECONDS_PER_TICK` for consistency.
</issue_to_address>

### Comment 2
<location path="tests/test_emotion_recovery.py" line_range="22-31" />
<code_context>
+            },
+        }
+
+        new = ConfigUpdater().config_update(old, now=self.now)
+
+        self.assertEqual(new['Main']['Emotion']['Fleet1Value'], 119)
+        self.assertEqual(new['Main']['Emotion']['Fleet1Record'], self.now)
+
+    def test_config_reload_preserves_fractional_recovery_time(self):
</code_context>
<issue_to_address>
**suggestion (testing):** Add a test to verify that `is_template=True` skips emotion recovery and leaves template configs unchanged.

Given that `ConfigUpdater.config_update` now takes `now` and calls `recover_emotion_config` only when `is_template` is `False`, add a test that passes `is_template=True` with an `old` config containing emotion fields and asserts that both `Value` and `Record` are unchanged. This will guard against future changes inadvertently applying recovery to template configs.

```suggestion
        }

        new = ConfigUpdater().config_update(old, now=self.now)

        self.assertEqual(new['Main']['Emotion']['Fleet1Value'], 119)
        self.assertEqual(new['Main']['Emotion']['Fleet1Record'], self.now)

    def test_template_config_skips_emotion_recovery(self):
        old = {
            'Main': {
                'Emotion': {
                    'Fleet1Value': 39,
                    'Fleet1Record': self.now - timedelta(hours=12),
                    'Fleet1Recover': 'not_in_dormitory',
                    'Fleet1Oath': False,
                    'Fleet1Onsen': False,
                },
            },
        }

        new = ConfigUpdater().config_update(old, now=self.now, is_template=True)

        self.assertEqual(new['Main']['Emotion']['Fleet1Value'], old['Main']['Emotion']['Fleet1Value'])
        self.assertEqual(new['Main']['Emotion']['Fleet1Record'], old['Main']['Emotion']['Fleet1Record'])

    def test_config_reload_preserves_fractional_recovery_time(self):
        old = {
            'Event': {
```
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread module/config/emotion_recovery.py Outdated
Comment thread tests/test_emotion_recovery.py
@a2893005741

Copy link
Copy Markdown
Owner Author

@sourcery-ai review

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - 我发现了 1 个问题

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="tests/test_emotion_recovery.py" line_range="7" />
<code_context>
+from module.config.config_updater import ConfigUpdater
+
+
+class TestEmotionConfigRecovery(unittest.TestCase):
+    def setUp(self):
+        self.now = datetime(2026, 8, 18, 12, 0, 0)
</code_context>
<issue_to_address>
**suggestion (testing):** 为非正的经过时间(记录时间在未来或等于 `now`)添加测试。

目前我们只测试了严格为正的时间间隔。请增加一个测试用例,使 `Fleet*Record` 等于 `now`,以及一个稍微在未来的测试用例(例如 `now + 1 minute`),并断言数值和值记录都保持不变。这样可以覆盖 `_recover_fleet``if elapsed <= 0: return` 这个保护逻辑,有助于防止与未来时间戳影响情绪状态相关的回归问题。

建议实现:

```python
class TestEmotionConfigRecovery(unittest.TestCase):
    def setUp(self):
        self.now = datetime(2026, 8, 18, 12, 0, 0)

    def test_recover_fleet_record_equal_now_does_not_change(self):
        old = {
            'Main': {
                'Emotion': {
                    'Fleet1Value': 39,
                    'Fleet1Record': self.now,
                    'Fleet1Recover': 'not_in_dormitory',
                    'Fleet1Oath': False,
                    'Fleet1Onsen': False,
                }
            }
        }

        updater = ConfigUpdater()
        emotions = old['Main']['Emotion']

        # elapsed = 0, guard `if elapsed <= 0: return` should keep values unchanged
        updater._recover_fleet(emotions, 'Fleet1', self.now)

        self.assertEqual(39, emotions['Fleet1Value'])
        self.assertEqual(self.now, emotions['Fleet1Record'])

    def test_recover_fleet_future_record_does_not_change(self):
        future_record = self.now + timedelta(minutes=1)
        old = {
            'Main': {
                'Emotion': {
                    'Fleet1Value': 39,
                    'Fleet1Record': future_record,
                    'Fleet1Recover': 'not_in_dormitory',
                    'Fleet1Oath': False,
                    'Fleet1Onsen': False,
                }
            }
        }

        updater = ConfigUpdater()
        emotions = old['Main']['Emotion']

        # elapsed < 0, guard `if elapsed <= 0: return` should keep values unchanged
        updater._recover_fleet(emotions, 'Fleet1', self.now)

        self.assertEqual(39, emotions['Fleet1Value'])
        self.assertEqual(future_record, emotions['Fleet1Record'])

    def test_config_reload_recovers_stale_task_emotion_to_maximum(self):
        old = {
            'Main': {
                'Emotion': {
                    'Fleet1Value': 39,
                    'Fleet1Record': self.now - timedelta(hours=12),
                    'Fleet1Recover': 'not_in_dormitory',
                    'Fleet1Oath': False,
                    'Fleet1Onsen': False,

```

如果实际的 `_recover_fleet` 函数签名不同(例如不接收 `now` 或期望不同的参数),请相应调整 `updater._recover_fleet(...)` 调用以匹配现有实现。同时确保 `ConfigUpdater` 是负责情绪恢复的正确类;如果项目使用了不同的公共 API(如 `recover_emotion` 方法),你可以将直接调用 `_recover_fleet` 替换为这个公共 API,同时仍然按照上面的方式设置输入字典和断言。
</issue_to_address>

Sourcery 对开源项目免费——如果你喜欢我们的代码审查,请考虑分享它们 ✨
帮我变得更有用!请在每条评论上点击 👍 或 👎,我会根据你的反馈改进后续的代码审查。
Original comment in English

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="tests/test_emotion_recovery.py" line_range="7" />
<code_context>
+from module.config.config_updater import ConfigUpdater
+
+
+class TestEmotionConfigRecovery(unittest.TestCase):
+    def setUp(self):
+        self.now = datetime(2026, 8, 18, 12, 0, 0)
</code_context>
<issue_to_address>
**suggestion (testing):** Add tests for non-positive elapsed time (record in the future or equal to `now`).

Right now we only test strictly positive elapsed intervals. Please add one test where `Fleet*Record` equals `now` and one where it’s slightly in the future (e.g. `now + 1 minute`), and assert that both the value and record remain unchanged. This will exercise the `if elapsed <= 0: return` guard in `_recover_fleet` and help prevent regressions around future timestamps affecting emotion state.

Suggested implementation:

```python
class TestEmotionConfigRecovery(unittest.TestCase):
    def setUp(self):
        self.now = datetime(2026, 8, 18, 12, 0, 0)

    def test_recover_fleet_record_equal_now_does_not_change(self):
        old = {
            'Main': {
                'Emotion': {
                    'Fleet1Value': 39,
                    'Fleet1Record': self.now,
                    'Fleet1Recover': 'not_in_dormitory',
                    'Fleet1Oath': False,
                    'Fleet1Onsen': False,
                }
            }
        }

        updater = ConfigUpdater()
        emotions = old['Main']['Emotion']

        # elapsed = 0, guard `if elapsed <= 0: return` should keep values unchanged
        updater._recover_fleet(emotions, 'Fleet1', self.now)

        self.assertEqual(39, emotions['Fleet1Value'])
        self.assertEqual(self.now, emotions['Fleet1Record'])

    def test_recover_fleet_future_record_does_not_change(self):
        future_record = self.now + timedelta(minutes=1)
        old = {
            'Main': {
                'Emotion': {
                    'Fleet1Value': 39,
                    'Fleet1Record': future_record,
                    'Fleet1Recover': 'not_in_dormitory',
                    'Fleet1Oath': False,
                    'Fleet1Onsen': False,
                }
            }
        }

        updater = ConfigUpdater()
        emotions = old['Main']['Emotion']

        # elapsed < 0, guard `if elapsed <= 0: return` should keep values unchanged
        updater._recover_fleet(emotions, 'Fleet1', self.now)

        self.assertEqual(39, emotions['Fleet1Value'])
        self.assertEqual(future_record, emotions['Fleet1Record'])

    def test_config_reload_recovers_stale_task_emotion_to_maximum(self):
        old = {
            'Main': {
                'Emotion': {
                    'Fleet1Value': 39,
                    'Fleet1Record': self.now - timedelta(hours=12),
                    'Fleet1Recover': 'not_in_dormitory',
                    'Fleet1Oath': False,
                    'Fleet1Onsen': False,

```

If the actual `_recover_fleet` signature differs (for example, if it does not take `now` or expects different parameters), adjust the `updater._recover_fleet(...)` calls accordingly to match the existing implementation. Also ensure that `ConfigUpdater` is the correct class responsible for emotion recovery; if the project uses a different public API (e.g. a `recover_emotion` method), you can replace the direct `_recover_fleet` calls with that public API while still setting up the input dictionaries and assertions as shown.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread tests/test_emotion_recovery.py
@a2893005741

Copy link
Copy Markdown
Owner Author

@sourcery-ai review

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - 我给出了一些高层次的反馈:

  • module.config.emotion_recoverymodule.combat.emotion 导入 DIC_RECOVER_MAXSECONDS_PER_TICKemotion_recovery_speed 会引入一个从 config 到 combat 的耦合;建议把这些共享的常量/辅助方法移到一个中立模块(例如 module.common.emotion_constants),这样 combat 和 config 都依赖它,而不是彼此之间产生依赖。
  • _recover_fleet 中的恢复公式实际上与 FleetEmotion.update 中的实现重复;为避免将来行为出现偏差,建议提取一个共享的辅助方法(例如一个纯函数,从 value/record/recover/flags/now 计算新的值和记录时间),并在配置加载和运行时情绪更新中都使用它。
给 AI Agent 的提示
Please address the comments from this code review:

## Overall Comments
- Importing `DIC_RECOVER_MAX`, `SECONDS_PER_TICK` and `emotion_recovery_speed` from `module.config.emotion_recovery` into `module.combat.emotion` introduces a config→combat coupling; consider moving these shared constants/helpers to a neutral module (e.g. `module.common.emotion_constants`) so combat and config both depend on it instead of each other.
- The recovery formula in `_recover_fleet` is effectively duplicated from `FleetEmotion.update`; to avoid future drift in behavior, consider extracting a shared helper (e.g. a pure function that computes new value and record time from value/record/recover/flags/now) and using it in both config loading and runtime emotion updates.

Sourcery 对开源项目是免费的——如果你觉得我们的评审有帮助,请考虑分享给更多人 ✨
帮我变得更有用!请在每条评论上点击 👍 或 👎,我会根据你的反馈改进后续的评审。
Original comment in English

Hey - I've left some high level feedback:

  • Importing DIC_RECOVER_MAX, SECONDS_PER_TICK and emotion_recovery_speed from module.config.emotion_recovery into module.combat.emotion introduces a config→combat coupling; consider moving these shared constants/helpers to a neutral module (e.g. module.common.emotion_constants) so combat and config both depend on it instead of each other.
  • The recovery formula in _recover_fleet is effectively duplicated from FleetEmotion.update; to avoid future drift in behavior, consider extracting a shared helper (e.g. a pure function that computes new value and record time from value/record/recover/flags/now) and using it in both config loading and runtime emotion updates.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Importing `DIC_RECOVER_MAX`, `SECONDS_PER_TICK` and `emotion_recovery_speed` from `module.config.emotion_recovery` into `module.combat.emotion` introduces a config→combat coupling; consider moving these shared constants/helpers to a neutral module (e.g. `module.common.emotion_constants`) so combat and config both depend on it instead of each other.
- The recovery formula in `_recover_fleet` is effectively duplicated from `FleetEmotion.update`; to avoid future drift in behavior, consider extracting a shared helper (e.g. a pure function that computes new value and record time from value/record/recover/flags/now) and using it in both config loading and runtime emotion updates.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@a2893005741

Copy link
Copy Markdown
Owner Author

@sourcery-ai review

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嘿,我已经审查了你的更改,一切看起来都很棒!


Sourcery 对开源项目是免费的——如果你喜欢我们的审查结果,请考虑分享 ✨
帮我变得更有用!请在每条评论上点击 👍 或 👎,我会根据你的反馈改进审查质量。
Original comment in English

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@a2893005741
a2893005741 marked this pull request as ready for review August 18, 2026 12:12

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1ce07042c9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread module/config/emotion_recovery.py Outdated
@a2893005741

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@a2893005741
a2893005741 merged commit c2e9543 into master Aug 18, 2026
8 checks passed
@a2893005741
a2893005741 deleted the codex/fix-emotion-recovery-on-config-load branch August 18, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant