I want to know how i can change hit cap. I wanna make a worldserver.conf option to set the value.
Just like the Dodge, Parry, Block and Crit. So same method but for Hit Rating. I guess i can just take a look at the the other stats and see how they made it for those stats and then just make same thing for Hit Rating. But i don't know wich files i need to edit and what i need to edit. The problem is that if a player is getting too much hit then the hit rating go to 0 hit rating. So the player miss with their attacks. I know that it's more simple just use a low amount of hit rating on the items but i want this config option. So wich files do i need to edit and where in the files? and as most of you guys already know, I don't know the C++ language so a guide would be awesome :)
I found this
in StatSystem.cpp on line 730-731. i guess i need to rewrite it for Hit Rating and add it somewhere, Am i right about that? And if i need to do that where in StatSystem.cpp do i need to add it. Is there any more changes i need to do? for example in world.cpp and world.h maybe?Code:if (sWorld->getBoolConfig(CONFIG_STATS_LIMITS_ENABLE)) value = value > sWorld->getFloatConfig(CONFIG_STATS_LIMITS_PARRY) ? sWorld->getFloatConfig(CONFIG_STATS_LIMITS_PARRY) : value;