Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2012, 08:28 PM
Tabasco's Avatar
Tabasco
Discordant
 
Join Date: Sep 2009
Posts: 269
Default 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.
Reply With Quote
  #2  
Old 07-12-2012, 02:50 AM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

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;
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:01 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3