Mount & Blade II: Bannerlord
0 of 0

File information

Last updated

Original upload

Created by

ustipak

Uploaded by

ustipak

Virus scan

Safe to use

About this mod

Mount and Blade 2: Bannerlord mod that fixes wrong implementation of valor xp

Requirements
Permissions and credits
Fix Valor
In Bannerlord the only way to get valor is to fight battles against the odds, but this is broken in current versions of the game. This mod fixes that!

Details
In newer changes PlayerEncounter class calls a function MapEvent.RecalculateStrengthOfSides() while EncounterState is still set to PrepareResults, but the code that calculates valor xp is connected to a event that fires after that.
The result of this is:
  • strength of a opponent side will always be 0 because you are victorious
  • you gain valor only on victory
  • no valor for you

The fix in this mod is implemented by not using CampaignEvents.OnPlayerBattleEndEvent, but using CampaignEvents.OnMissionEndedEvent which is fired before previous event. This might result in unintended change that a player now needs to play the battle to get the valor, but to be honest that feels fitting (and is probably the way TaleWorlds wanted to implement it).

Source code on GitHub