Chaotic Potential AA Fix
This code was submitted by Spider 661, and I am re-posting it here so it is easier to keep track of to get added to the source:
Quote:
Quote:
http://www.eqemulator.net/forums/showthread.php?t=25717 Again, I had nothing to do with writing this code. I am just quoting it here for easy reference and organization of code submissions. Spider661 gets all the credit. I am running this code change on my server and it works perfectly. |
I edited this code a little to give a little more options. This is for use with my new custom rule, ExtraLevelCap. But, the rule could easily be replaced with MaxLevel and it would work with the current rule system.
Basically, the adjustments for calculating max stats is for servers that have a level cap over level 70. This will let them keep getting 5 stats per level no matter how high they set the level cap to. Changing the base to 330 isn't really necessary, but in most cases this setting would probably only get used by GMs that set their level to be above the level cap rule(s) on the server. Really, this could just stay 280, but it depends on what you want your GMs over max level to have as their stat caps. The only real important thing in this submission is that the Chaotic Potential fix gets added in. There should be nothing holding this part up from making it into the source. This fix has HP calculated considerably more accurate for players with this AA. It is usually only off by 1 or 2 hps, which isn't the fault of this code. I think that is another issue all together with HP calculations. Here is the Chaotic Potential Fix that goes in the client_mods.cpp: Code:
base += GetAA(aaChaoticPotential) * 5; //added by spider661 - Chaotic Potential Fix And, here is the fully edited code from Spider661 with a little tweaking from me: client_mods.cpp: Code:
#include "../common/ruletypes.h" Code:
sint16 Client::GetMaxStat() const { All I want it to do is make "lvlcap" equal whatever ExtraLevelCap is set to in the rules + 1. So, if it is set to 75 in the rules, lvlcap would equal 76. I will try this out tonight and see how it goes. |
All times are GMT -4. The time now is 03:09 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.