Wedding Witch

Wedding Witch

View Stats:
Miraille Nov 12, 2023 @ 6:54am
Manupulate the rng
Do you think it's possible to manipulate rng of potion for....science ?
Originally posted by Will33_401:
A more "big brain" alternative to CE memory hacking, much more effort but remains permanent.
Get a dnSpy Decompiler, and open the Assembly-CSharp.dll file under Wedding Witch_Data\Managed with it.
Under the {} namespace, you can find a class named PotionManager, under this class there's a function called GetSize,
Right click on it and choose Edit Method(C#)

Example:
public Size GetSize() { if (BattleUIManager.difficulty == Difficulty.Hard) { if (MissionManager.instance.currentMission == SlotType.KillElite) { return Size.Large; } if (Calculator.IsTrue(33)) { return Size.Large; } }

Change the parameter in the Calculator.IsTrue(33) line to 100 or whatever number you like to manipulate RNG. After you've done, hit compile and use hotkey Ctrl+Shift+S to save everything to a seperate file. Backup your original Assembly-CSharp.dll file and replace it with the one you made, and it's done.

BTW, under Potion class there's a GetIncreaseAmout function that controls the amount of levels you gain by drinking potions. Play with it if you feel like it.
< >
Showing 1-8 of 8 comments
SvenS2 Nov 12, 2023 @ 7:14am 
What do you mean?
Anglel Nov 12, 2023 @ 7:16am 
yes you can, but when the witch change her form it doesnt matter if you drink other potions it wont change her apperance
Miraille Nov 12, 2023 @ 9:38am 
Originally posted by Angel Dust:
yes you can, but when the witch change her form it doesnt matter if you drink other potions it wont change her apperance

How ?
Miraille Nov 12, 2023 @ 9:41am 
Originally posted by SvenZ:
What do you mean?

When you choose a morph potion, i was wondering if you can change change the rng of selectrion of potion (chosse want do you want)
Last edited by Miraille; Nov 12, 2023 @ 9:41am
stuckinsilver Nov 13, 2023 @ 6:02pm 
Even better would be a alternate game mode that does away with RNG all together (not crit or dodge tho).

Maybe something that is unlocked after beating the 3rd difficulty.

To be more specific I'm talking about having complete choice over potions, flowers, skills and basic attack upgrades.
Vinyard Nov 27, 2023 @ 6:21pm 
If you just want to change the appearance of your witch, you can use Cheat Engine for this.

  1. Watch a general Cheat Engine tutorial if you need to
  2. Start your first run
  3. Search for a 4byte value of 0
  4. Finish your first map and drink a big breasts potion
  5. Search next for 1 or 2 depending on the potion size (equal to the number of hearts)
  6. Continue your run and find the next big breasts potion
  7. Search for the new current number of hearts
  8. Repeat until only a handful (usually 3) search results remain in Cheat Engine
  9. Look for the results address that ends on 80 (eg. 1A691678B80) and add it to the addresslist
  10. Now manually add 5 new addresses that identical to the first address but change the last 2 digits to 84, 88, 8C, 90 and 94

When you are done it should look similar to this:
1A691678B80 (Big Breasts) 1A691678B84 (Small Breasts) 1A691678B88 (Big Hips) 1A691678B8C (Muscular) 1A691678B90 (Beast) 1A691678B94 (Corruption)

You can then change the values to your liking and even lock them at a specific value. The addresses remain the same in between runs, but you will have to do the whole process over again if you close the game.

Have fun doing your science. :praisesun:
Last edited by Vinyard; Nov 27, 2023 @ 6:22pm
The author of this thread has indicated that this post answers the original topic.
Will33_401 Nov 27, 2023 @ 8:41pm 
A more "big brain" alternative to CE memory hacking, much more effort but remains permanent.
Get a dnSpy Decompiler, and open the Assembly-CSharp.dll file under Wedding Witch_Data\Managed with it.
Under the {} namespace, you can find a class named PotionManager, under this class there's a function called GetSize,
Right click on it and choose Edit Method(C#)

Example:
public Size GetSize() { if (BattleUIManager.difficulty == Difficulty.Hard) { if (MissionManager.instance.currentMission == SlotType.KillElite) { return Size.Large; } if (Calculator.IsTrue(33)) { return Size.Large; } }

Change the parameter in the Calculator.IsTrue(33) line to 100 or whatever number you like to manipulate RNG. After you've done, hit compile and use hotkey Ctrl+Shift+S to save everything to a seperate file. Backup your original Assembly-CSharp.dll file and replace it with the one you made, and it's done.

BTW, under Potion class there's a GetIncreaseAmout function that controls the amount of levels you gain by drinking potions. Play with it if you feel like it.
Vinyard Nov 28, 2023 @ 1:27am 
Wow, never knew you could do this with C# software. Does this work for all C# software or only for applications that are compiled in a specific way?
< >
Showing 1-8 of 8 comments
Per page: 1530 50