Skip to content

fix: 应急理智药,修复理智上限为1000的问题#1898

Merged
MistEO merged 1 commit intoMaaEnd:v2from
fuhaixi:fix-sp-max
Apr 3, 2026
Merged

fix: 应急理智药,修复理智上限为1000的问题#1898
MistEO merged 1 commit intoMaaEnd:v2from
fuhaixi:fix-sp-max

Conversation

@fuhaixi
Copy link
Copy Markdown
Contributor

@fuhaixi fuhaixi commented Apr 3, 2026

理智上限为1000,最多使用15次应急理智药一共加600

Summary by Sourcery

调整理智药物的行为和文本,使其遵守 1000 点理智上限,并修正其最大累积恢复量。

Bug 修复:

  • 修复紧急理智药物,使其无法将理智值提升到超过 1000 点的上限,并正确限制总恢复量。

文档:

  • 更新本地化界面文本,以反映紧急理智药物修正后的最大理智恢复值。
Original summary in English

Summary by Sourcery

Adjust sanity medication behavior and text to respect the 1000 sanity cap and correct its maximum cumulative gain.

Bug Fixes:

  • Fix emergency sanity medication so it cannot increase sanity beyond the 1000-point maximum and correctly limits total recovery.

Documentation:

  • Update localized interface text to reflect the corrected maximum sanity gain from emergency sanity medication.

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - 我已经审查了你的更改,一切看起来都很棒!


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.

@fuhaixi
Copy link
Copy Markdown
Contributor Author

fuhaixi commented Apr 3, 2026

#1880

@MistEO
Copy link
Copy Markdown
Contributor

MistEO commented Apr 3, 2026

我觉得最好从识别的角度限制,我没看过游戏里提示不能再恢复是啥样的,不过最好直接识别这个,提示不能再恢复就停止。

不然比如现在已经 900 理智了,再去吃几个,还是会出错

@fuhaixi
Copy link
Copy Markdown
Contributor Author

fuhaixi commented Apr 3, 2026

提示截图#1880里有,不太好识别,其实也可以识别那个蓝色理智数字判断不大于1000,不过那样逻辑最好改到go语言写。另外出错了不会卡住后续任务,而且理智除非手动用了理智药不会超过400。

@fuhaixi
Copy link
Copy Markdown
Contributor Author

fuhaixi commented Apr 3, 2026

说句题外话,我原本是怕理智药被浪费,不想一直看有没有要过期的理智药。写出功能才发现,同一周获取的理智药,统一在下一周周末过期,所以只可能在周五,周六,周日遇到红限时的理智药。

@MistEO
Copy link
Copy Markdown
Contributor

MistEO commented Apr 3, 2026

也行,先这样临时处理一下吧

@MistEO MistEO merged commit 0c5c239 into MaaEnd:v2 Apr 3, 2026
18 checks passed
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.

2 participants