无限火力

无限火力

Auto Recovery \ Parry \ Feather Trigger 每秒恢复最大生命的 1%,以及最大体力的 20%,受脚本的存活、数值和上限条件限制。 • 成功弹反恢复最大生命的 7% 和最大体力的 50%。 • 弹反窗口 0.4 秒,成功后保护时长参数为 0.6 秒。 •受伤回羽毛 •斧头火炮回羽毛 •技能

AutoRecovery · 自动恢复与弹反强化(2026-09-23 独立分享版)

介绍
为《明末:渊虚之羽》提供自动生命/体力恢复,并整合当前脚本中的弹反强化、成功弹反恢复和部分动作回羽毛逻辑。进入存档后自动工作,没有新增快捷键或管理面板。
此包沿用当前 AutoRecovery / ParryAnything 脚本,不包含弹反假身、宠物、坐骑或化身技能。

当前默认配置
• 每秒恢复最大生命的 1%,以及最大体力的 20%,受脚本的存活、数值和上限条件限制。
• 成功弹反恢复最大生命的 7% 和最大体力的 50%。
• 弹反窗口 0.4 秒,成功后保护时长参数为 0.6 秒。
• 防连按参数:检测间隔 0.8 秒,最大快速连按次数 3;具体生效由脚本判定。
• 基础架势伤害参数 20,冲击系数 0.20,弱/强冲击阈值分别为 4 和 8。
• 部分指定招式使用 2 秒保护时长,并有回羽毛处理;并非所有动作通用。
• 脚本包含相邻生命检查之间掉血超过最大生命 10% 时尝试回复 1 根羽毛,以及特定技能窗口内按 fireFeather=3 参数回羽毛的逻辑。
以上是脚本参数,不保证每种敌人、攻击或状态都适用。普通格挡不等同于成功触发本脚本弹反。


补充技能效果
3. 回羽毛:流派技能【回马枪】和双刀默认流派技能,在消耗须羽并释放后自动回复 1 根羽毛。
4. 受伤回羽毛:约 1 秒的相邻生命检查间隔内,生命下降超过最大生命的 10% 时,自动回复 1 根羽毛。当前实现按前后生命差计算,并非逐次累计原始伤害;期间回血可能影响判定。
5. 技能保护:双刀默认流派技能、单手剑多个流派技能,以及长剑【回马刀】【饿殍遍野】第一段释放过程加入无敌保护。保护期间受到敌人攻击时,还会削减敌人韧性,并恢复自身生命和体力,默认恢复最大生命的 7% 和最大体力的 50%。当前保护采用指定动作和时间窗口判定,效果受实际触发条件限制。
6. 斧头火炮回羽毛:释放消耗 3 根须羽的火炮战技后,约 1 秒回复 3 根羽毛,可用于连续火炮玩法。恢复由每秒检查触发,实际时点存在轮询误差。

前置要求与安装
需要 PC 版游戏,以及兼容并支持 LoopInGameThreadWithDelay 的 UE4SS。
1. 完整退出游戏。
2. 将包内 Project_Plague 文件夹合并复制到游戏根目录。
3. 确认存在 Project_Plague\Binaries\Win64\ue4ss\Mods\AutoRecovery\Scripts\main.lua。
4. 保留 enabled.txt 和 Scripts\AutoRecoveryStartup.lua;启动保护依赖已随包提供,不需要复制作者的 shared 文件夹。
5. 如果 mods.txt 明确禁用 AutoRecovery,请将对应项改为 1。
6. 重启游戏进入存档。无需额外 PAK、其他自制 Mod 或快捷键。
升级前备份原 AutoRecovery 文件夹,不要将同一脚本改名后重复启用。

配置
退出游戏后编辑 Scripts\main.lua 顶部的 ParryConfig 与 SkillImmunityState。
healPerSecond:每秒生命恢复比例;staminaPerSecond:每秒体力恢复比例。
healPercentage / staminaPercentage:成功弹反后的恢复比例。
不需要的对应恢复比例可设为 0;其他参数请结合原注释调整,修改后重启游戏。

兼容与卸载
会影响游戏难度。与其他弹反、伤害免疫、回血、体力或羽毛 Mod 同时使用时,可能叠加或冲突。
退出游戏后移走 AutoRecovery 文件夹即可卸载。
分享包不带脚本备份、个人状态、SHA 校验文件或 UE4SS。

来源与验证
保留现有 AutoRecovery / ParryAnything 的玩法逻辑;仅将启动保护依赖改为包内独立模块名。
原目录附带说明称该弹反逻辑为 ParryAnything,作者署名在现有文件中未明确,本打包不声明原创。
已检查 Lua 语法、依赖完整性及 ZIP 完整性;未将打包检查视为所有战斗场景实机通过。
问题反馈请附 UE4SS.log 中 ParryAnything、ParryRecovery 或 GameplayStartup 的记录。


========================================

AutoRecovery — Automatic Recovery and Enhanced Parrying
Standalone package, 2026-09-23

Description
Provides automatic health/stamina recovery in WUCHANG: Fallen Feathers, alongside the current script's enhanced parry handling, recovery on successful parries, and selected feather-recovery behaviors. Runs after entering gameplay; no additional hotkey or management panel is added.
Preserves the existing AutoRecovery / ParryAnything implementation. Parry echoes, pets, mounts, and avatar skills are not included.

Current Default Configuration
• Regenerates 1% of maximum HP and 20% of maximum stamina per second, subject to the script's alive/value/cap checks.
• Successful parry recovery: 7% of maximum HP and 50% of maximum stamina.
• Parry window: 0.4 seconds. Successful-parry protection duration parameter: 0.6 seconds.
• Anti-spam parameters: 0.8-second rapid-press interval and maximum rapid-press count of 3, interpreted by the script's checks.
• Base poise-damage parameter: 20; impact coefficient: 0.20; weak/strong impact thresholds: 4 and 8.
• Selected actions use a 2-second protection duration and additional feather handling; these are not universal for every action.
• Includes an attempt to recover one feather when HP loss between consecutive health checks exceeds 10% of maximum HP, plus feather recovery using fireFeather=3 during a specific skill window.
These are configuration values, not a guarantee for every attack, enemy, or state. An ordinary block does not necessarily qualify as a successful scripted parry.


Additional Skill Effects
3. Feather recovery: the spear style skill “Hui Ma Qiang” (回马枪) and the default dual-blade style skill restore one feather after spending feathers and activating the skill.
4. Recovery after taking damage: restores one feather when HP drops by more than 10% of maximum HP between consecutive health checks, approximately one second apart. The implementation compares HP snapshots rather than summing individual damage events; healing during that interval can affect the result.
5. Skill protection: adds invulnerability during the opening stage of the default dual-blade style skill, several one-handed sword style skills, and the longsword skills “Hui Ma Dao” (回马刀) and “E Piao Bian Ye” (饿殍遍野). When an enemy attacks during the protection window, the effect also reduces enemy poise and restores player health and stamina, defaulting to 7% of maximum HP and 50% of maximum stamina. Protection is checked through specific animations and timing windows, so trigger conditions still apply.
6. Axe cannon recovery: after using the cannon weapon skill that costs three feathers, restores three feathers after approximately one second, supporting repeated cannon use. Recovery is processed by the periodic check, so timing may vary with the polling interval.
English skill names above are transliterations; the Chinese names identify the intended skills.

Requirements and Installation
Requires the PC game and compatible UE4SS supporting LoopInGameThreadWithDelay.
1. Fully close the game.
2. Merge the archive's Project_Plague folder into the game root directory.
3. Confirm Project_Plague\Binaries\Win64\ue4ss\Mods\AutoRecovery\Scripts\main.lua exists.
4. Keep enabled.txt and Scripts\AutoRecoveryStartup.lua. The startup guard is included locally; the author's shared folder is not required.
5. If mods.txt explicitly disables AutoRecovery, change that entry to 1.
6. Restart and enter your save. No additional PAK, custom mod, or shortcut is required.
Back up existing AutoRecovery installations before upgrading. Do not enable renamed duplicate copies.

Configuration
With the game closed, edit ParryConfig and SkillImmunityState near the top of Scripts\main.lua.
healPerSecond / staminaPerSecond control periodic recovery fractions.
healPercentage / staminaPercentage control successful-parry recovery fractions.
Set an unwanted recovery fraction to 0. Refer to the existing comments for other settings and restart after changes.

Compatibility and Uninstallation
Changes gameplay difficulty. Other parry, immunity, health, stamina, or feather mods may stack or conflict.
To uninstall, close the game and remove AutoRecovery.
Script backups, personal state, SHA files, and UE4SS are not included.

Source and Validation
Preserves existing AutoRecovery / ParryAnything gameplay logic. Only the startup dependency is redirected to a bundled, uniquely named module.
The existing documentation identifies the parry logic as ParryAnything but does not clearly identify its author. This packaging does not claim original authorship.
Lua syntax, dependency completeness, and ZIP integrity were checked; this is not comprehensive in-game combat verification.
For issues, include UE4SS.log entries containing ParryAnything, ParryRecovery, or GameplayStartup.