MADNESS: Project Nexus

MADNESS: Project Nexus

Wingidon's Miscellaneous Enhancements
I LOVE SPECIAL HIRELINGS
is there any way to manually change the chance
< >
Showing 1-8 of 8 comments
Wingidon  [developer] 28 Dec, 2024 @ 4:25pm 
The chance for a Hireling to be a "Heroic" hireling (Hank, Sanford, Deimos or Victor) is 1%. To edit that, you'd need to go into the Assembly-CSharp.dll file using dnSpy and edit it from there.

If you do want to do that, the class is Squad_Hireling. Within that, there's a function called RandomHireling. I've got a line of code in there that says "if (SwainM.RandomChance(0.99f))", which basically dictates that there's a 99% chance for it to be a regular Hireling. If you want to change the chance of that, change the "0.99f" to a different value. So, for a 5% chance for a special hire, you'd set it to "0.95f".
Thanks bro
can you explain more I'm new to dnspy I never did coding
Wingidon  [developer] 28 Dec, 2024 @ 6:35pm 
Originally posted by brain damage simulator:
can you explain more I'm new to dnspy I never did coding
File, Open, open up your M:PN's Assembly-CSharp.dll file. Open the dropdown menus until you find one that has four - "PE", "Type References", "References" and "-". Open the dropdown called "-". Scroll down until you find the class called Squad_Hireling. Click on that. Now, click somewhere in the RandomHireling function, right-click, click "Edit method". Change the value as I described, then click "Compile". Once you've done that, go to File, then Save All. You don't need to mess with any of the settings in that, just click "OK" from there.

I'm not really very good at explaining things, so if you need a more in-depth explanation, I recommend looking up a dnSpy tutorial online.
Last edited by Wingidon; 28 Dec, 2024 @ 6:35pm
can i change it to 50% or would it just break the game
Wingidon  [developer] 30 Dec, 2024 @ 3:38pm 
Originally posted by brain damage simulator:
thank you very much bro https://imgur.com/a/1U3gTcT
Good to see you got it working. That's a lot of Hanks!
theres 53 hanks rn
< >
Showing 1-8 of 8 comments
Per page: 1530 50