Adding the Bandit

Looking for SurvivorCatalog

IMPORTANT You need to drag and drop the Assembly-CSharp.dll in "Risk of Rain 2\Risk of Rain 2_Data\Managed\", not the backup you made.

Fixing broken code

while (enumerator.MoveNext()) { SurvivorDef survivor = new SurvivorDef(); survivor = enumerator.Current; ViewablesCatalog.Node survivorEntryNode = new ViewablesCatalog.Node(survivor.survivorIndex.ToString(), false, node); survivorEntryNode.shouldShowUnviewed = ((UserProfile userProfile) => !userProfile.HasViewedViewable(survivorEntryNode.fullName) && userProfile.HasSurvivorUnlocked(survivor.survivorIndex) && !string.IsNullOrEmpty(survivor.unlockableName)); }

Adding bandit to idealSurvivorOrder

Adding bandit to SurvivorCatalog

SurvivorCatalog.survivorDefs = new SurvivorDef[7];

Change SurvivorIndex.Merc to SurvivorIndex.Bandit



to Change MercBody to BanditBody



to Change MercDisplay to BanditDisplay (probably useless since bandit doesn't have a display prefab)



to Change MERC_DESCRIPTION to BANDIT_DESCRIPTION (also useless, description tokens can be added in "Risk of Rain 2\Risk of Rain 2_Data\Language\EN_US\CharacterBodies.txt" if you want to)



to You can change primaryColor which is the color of the UI elements when selecting a survivor among other things



which is the color of the UI elements when selecting a survivor among other things Change Characters.Mercenary to Characters.Bandit

Unlocking the Bandit

<unlock>Characters.Bandit</unlock>

Open dnSpy, then drag and dropin dnSpy.You should have something like this:Now click on the search button next to the Start button In the search bar, type, double-click the first result.Now the SurvivorCatalog class should be opened, it's a file with some code, we are going to edit the code to add the Bandit.Right click anywhere in the SurvivorCatalog tab and click onA new window should appear and you can now edit the code.Scroll down to line 139, you should have this:Now select everything from line 139 to line 145 and replace it with this:While still in the edit class window, scroll down to line 165, you will find something called "idealSurvivorOrder", addat the end of the list, it should look like this:Scroll up to line 75, you will findEvery time you will add a survivor, you will need to increment that number (right now it's 7)Since we only have 6 survivors, we will not increase the number of survivorDefs, the size is 7 probably because a survivor was removed before release and the devs forgot to decrease the array size.After that we have 6 SurvivorCatalog.RegisterSurvivor, to add one for the bandit, copy everything from line 115 to line 122 (mercenary) and paste it right after.In the end it should look like:Then, click on the compile button:If it doesn't compile, you did something wrong.Then go toNow navigate to that profile xml file from earlier, open it with a text editor and scroll to the bottom, you will see where the unlocked characters are, add the Bandit like this:If you did everything correctly, the bandit should be available:If the game doesn't work, restore the original DLL file and try again.