Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-23-2008, 06:39 PM
seveianrex
Sarnak
 
Join Date: Sep 2008
Location: asdf
Posts: 60
Default Various GoD AA Code Changes

{zone/effects.cpp}
@152
locate:
Code:
chance += GetAA(aaFuryofMagicMastery2) * 2;	//just in case
and replace with
Code:
chance += GetAA(aaFuryofMagicMastery2) * 2;
(anal retentive, maybe, but I don't want it getting removed in future because the comment makes it sound iffy)

{zone/aggro.cpp}
@1184
locate:
Code:
switch (GetAA(aaSpellCastingSubtlety))
	{
	case 1:
		AggroAmount = AggroAmount * 95 / 100;
		break;
	case 2:
		AggroAmount = AggroAmount * 90 / 100;
		break;
	case 3:
		AggroAmount = AggroAmount * 80 / 100;
		break;
	}
add after:
Code:
switch (GetAA(aaSpellCastingSubtlety2))
	{
	case 1:
		AggroAmount = AggroAmount * 95 / 100;
		break;
	case 2:
		AggroAmount = AggroAmount * 90 / 100;
		break;
	case 3:
		AggroAmount = AggroAmount * 80 / 100;
		break;
	}
{zone/special_attacks.cpp}

line 30, locate:
Code:
int Mob::GetKickDamage() const {
	int multiple=(GetLevel()*100/5);
	multiple += 100;
	int dmg=(
			    (
				 (GetSkill(KICK) + GetSTR() + GetLevel())*100 / 9000
				) * multiple
			  )
			  + 600;	//Set a base of 6 damage, 1 seemed too low at the sub level 30 level.
	if(GetClass() == WARRIOR || GetClass() == WARRIORGM
	 ||GetClass() == BERSERKER || GetClass() == BERSERKERGM) {
		dmg*=12/10;//small increase for warriors
	}
	
	dmg /= 100;
	return(dmg);
}
REPLACE with
Code:
int Mob::GetKickDamage() const {
	int multiple=(GetLevel()*100/5);
	multiple += 100;
	int dmg=(
			    (
				 (GetSkill(KICK) + GetSTR() + GetLevel())*100 / 9000
				) * multiple
			  )
			  + 600;	//Set a base of 6 damage, 1 seemed too low at the sub level 30 level.
	if(GetClass() == WARRIOR || GetClass() == WARRIORGM
	 ||GetClass() == BERSERKER || GetClass() == BERSERKERGM) {
		dmg*=12/10;//small increase for warriors
	}
	dmg /= 100;

	switch (GetAA(aaStrengthenedStrike))
	{
	case 1:
		dmg *= 1.05;
		break;
	case 2:
		dmg *= 1.15;
		break;
	case 3:
		dmg *= 1.30;
		break;
	}

	return(dmg);
}
line 48, locate:
Code:
int Mob::GetBashDamage() const {
	int multiple=(GetLevel()*100/5);
	multiple += 100;

	//this is complete shite
	int dmg=(
			    (
				 ((GetSkill(BASH) + GetSTR())*100 + GetLevel()*100/2) / 10000
				) * multiple
			  )
			  + 600;	//Set a base of 6 damage, 1 seemed too low at the sub level 30 level.
	dmg /= 100;		  
	return(dmg);
}
REPLACE with
Code:
int Mob::GetBashDamage() const {
	int multiple=(GetLevel()*100/5);
	multiple += 100;

	//this is complete shite
	int dmg=(
			    (
				 ((GetSkill(BASH) + GetSTR())*100 + GetLevel()*100/2) / 10000
				) * multiple
			  )
			  + 600;	//Set a base of 6 damage, 1 seemed too low at the sub level 30 level.
	dmg /= 100;

	switch (GetAA(aaStrengthenedStrike))
	{
	case 1:
		dmg *= 1.05;
		break;
	case 2:
		dmg *= 1.15;
		break;
	case 3:
		dmg *= 1.30;
		break;
	}

	switch (GetAA(aaViciousSmash))
	{
	case 1:
		dmg *= 1.05;
		break;
	case 2:
		dmg *= 1.15;
		break;
	case 3:
		dmg *= 1.30;
		break;
	}

	return(dmg);
}
{zone/pets.cpp}
[code]
@ 204 locate:
Code:
//TODO: think about regen (engaged vs. not engaged)
and add before:
Code:
switch (GetAA(aaElementalDurability))
	{
	case 1:
		npc_type->max_hp *= 1.02;
		npc_type->cur_hp = npc_type->max_hp;
		break;
	case 2:
		npc_type->max_hp *= 1.05;
		npc_type->cur_hp = npc_type->max_hp;
		break;
	case 3:
		npc_type->max_hp *= 1.10;
		npc_type->cur_hp = npc_type->max_hp;
		break;
	}
Reply With Quote
 


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 02:20 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3