Example: Level 40 Rapidash - I fought it with around level 20 team, got it to red health and paralyzed it, and threw about 6 dusk balls at it at night, and was unable to catch it before my team died. I threw 2 dusk balls at it after my team fainted, and the second one caught it. I tried catching a few other high levels with the same technique, and ended up with a level 29 Hitmonchan and a level 37 Dodrio, each with only 1-2 pokeballs from full health in the wild.
So, my question is:
Is there any way to set this capture success rate outside of battle lower? Or preferably to 0%?
I would like to be able to force players on my server to have to battle and capture pokemon ONLY with the methods you used in the classic games, since making such drastic team level jumps seems a bit unbalanced.
Edit:
I have looked at the mod code, and I think the relevant code is either the doCaptureCalc() function of EntityPokeBall.class or the PokeballTypeHelper.getBallBonus() function
My theoretical thoughts: