MADNESS: Project Nexus

MADNESS: Project Nexus

Wingidon's Miscellaneous Enhancements
I LOVE SPECIAL HIRELINGS
is there any way to manually change the chance
< >
Mostrando 1-8 de 8 comentarios
Wingidon  [desarrollador] 28 DIC 2024 a las 16:25 
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  [desarrollador] 28 DIC 2024 a las 18:35 
Publicado originalmente por 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.
Última edición por Wingidon; 28 DIC 2024 a las 18:35
can i change it to 50% or would it just break the game
Wingidon  [desarrollador] 30 DIC 2024 a las 15:38 
Publicado originalmente por 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
< >
Mostrando 1-8 de 8 comentarios
Por página: 1530 50