EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   Level 10/20 damage caps (https://www.eqemulator.org/forums/showthread.php?t=35541)

Tabasco 07-11-2012 08:28 PM

Level 10/20 damage caps
 
In zone/attack.cpp
This:
Code:

if(GetLevel() < 10 && max_hit > 20)
    max_hit = (RuleI(Combat, HitCapPre10));
else if(GetLevel() < 20 && max_hit > 40)
    max_hit = (RuleI(Combat, HitCapPre20));

Should probably be this:
Code:

if(GetLevel() < 10 && max_hit > RuleI(Combat, HitCapPre10))
{
    max_hit = (RuleI(Combat, HitCapPre10));
}
else if(GetLevel() < 20 && max_hit > RuleI(Combat, HitCapPre20))
{
    max_hit = (RuleI(Combat, HitCapPre20));
}

It's not going to be an issue for most people, but it could cause some problems on custom servers.

lerxst2112 07-12-2012 02:50 AM

Bot::Attack also has some issues with that, assuming that bots should use the same caps as players.

Code:

                if(GetLevel() < 10 && max_hit > 20)
                        max_hit = 20;
                else if(GetLevel() < 20 && max_hit > 40)
                        max_hit = 40;



All times are GMT -4. The time now is 11:56 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.