So someone reported a bug on Surrender Tweaks where after winning a battle a menu comes up with the options "Capture the enemy", "Try to get away" and "Surrender". This is the first time it has ever been reported and I suspect it could be due to a particular combination of mods. The user did not provide a save file and I was unable to replicate the bug on my end.
After digging a little through the game code, I found that those menu options can only appear if the player is on the defending side. Later on, @MRay advised that this could occur if all the members of the enemy parties were wounded. Surrender Tweaks does not cause any casualties in enemy parties, but there is a part which calls
I was able to replicate the bug:
However, in the same method, I also call
Can I confirm that this is the case?
After digging a little through the game code, I found that those menu options can only appear if the player is on the defending side. Later on, @MRay advised that this could occur if all the members of the enemy parties were wounded. Surrender Tweaks does not cause any casualties in enemy parties, but there is a part which calls
DestroyPartyAction.Apply()
, and I suspected it could be the cause.I was able to replicate the bug:
However, in the same method, I also call
PlayerEncounter.LeaveEncounter = true
, which makes the player leave the encounter; therefore they will never see those menu options.Can I confirm that this is the case?