MADNESS: Project Nexus

MADNESS: Project Nexus

Wingidon's Miscellaneous Enhancements
I LOVE SPECIAL HIRELINGS
is there any way to manually change the chance
< >
Se afișează 1-8 din 8 comentarii
Wingidon  [dezvoltator] 28 dec. 2024 la 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".
can you explain more I'm new to dnspy I never did coding
Wingidon  [dezvoltator] 28 dec. 2024 la 18:35 
Postat inițial de 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.
Editat ultima dată de Wingidon; 28 dec. 2024 la 18:35
can i change it to 50% or would it just break the game
Wingidon  [dezvoltator] 30 dec. 2024 la 15:38 
Postat inițial de 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
< >
Se afișează 1-8 din 8 comentarii
Per pagină: 1530 50