Repeating Quest for Unique Items Bug Fix
This mod fixes the repeated unique item quest bug of the vanilla game, and this bug may also cause the spawning of repeated unique characters and event quests.
The core issue lies in errors with saved values of Lua scripts during saving and loading of the game, leading to saved files losing records of whether certain quests or events have been triggered. The root cause is that there is a limit to the length of a single stored string entry; when this limit is exceeded, the entry should be split into parts for storage. However, CA’s scripts fail to implement this logic properly. As a result, the more Lua mods you use (especially those like Recruit Defeated Legendary Lords), or the more endgame crises you enable (which also involve numerous saved values), the more prone you are to encountering this bug.
Note: This bug affects save files at the time of saving, so the mod is only effective for save files that have not yet encountered this issue.
Special thanks to 齐神武破阵 and 萌新 525 for their testing and save files.