Merge Similar Injuries (Another Version)
Previous version: What are the differences between this version and the previous version?
Previous version: https://steamcommunity.com/sharedfiles/filedetails/?id=3731853739
What are the differences between this version and the previous version?
1. The detection logic is the same, but the logic for merging wounds is different.
The operation of merging wounds is changed to remove old wounds while increasing the severity of old wounds to new wounds (the hediff for adding the new wound follows the vallina code).
This means that, theoretically, it is compatible with the mechanisms triggered when adding new wounds in other mods compared to the previous version.
2. Different performance.
Although the compatibility is better, because it involves the removal and addition of hediffs, the performance optimization in combat is not as good as the previous version. Simply put:
Previous version:
(1) Because it reduces the number of times new hediffs are generated, the hediff cache is refreshed less.
(2) Because it merges similar wounds, it reduces the amount of calculation when recalculating the full-body hediffs.
This version:
Only (2)