View Single Post
  #34  
Old 09-27-2008, 10:05 PM
Cantus
Fire Beetle
 
Join Date: Sep 2008
Location: New York
Posts: 18
Default

Quote:
Originally Posted by Flare83 View Post
i just readded the level check (think you forgot to put it back in after some editing) and eveything works fine again
Hi, Flare!

Please check step #4 in the instructions on how to build these new Damage Bonus changes. The level check is still in there; I just moved it outside of the Damage Bonus function itself (after all, why bother with function calling overhead if you aren't high enough level to receive a damage bonus?)

Here are the relevant lines:

Code:
if( Hand == 13 && GetLevel() >= 28 && IsWarriorClass() )
{
	// Damage bonuses apply only to hits from the main hand (Hand == 13) by characters level 28 and above
	// who belong to a melee class. If we're here, then all of these conditions apply.

	int8 ucDamageBonus = GetWeaponDamageBonus( weapon ? weapon->GetItem() : (const Item_Struct*) NULL );

	min_hit += (int) ucDamageBonus;
	max_hit += (int) ucDamageBonus;
}
Sounds like perhaps you overlooked this when building the changes. No worries!

Take care!
Reply With Quote