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

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2010, 09:23 AM
amraist
Fire Beetle
 
Join Date: Aug 2005
Posts: 29
Default Backstab Augment Fix

This will add backstab damage from augments to the weapons base backstab damage.
Code:
Index: zone/special_attacks.cpp
===================================================================
--- zone/special_attacks.cpp    (revision 1678)
+++ zone/special_attacks.cpp    (working copy)
@@ -606,6 +606,10 @@
                wpn = CastToClient()->GetInv().GetItem(SLOT_PRIMARY);
                primaryweapondamage = GetWeaponDamage(other, wpn);
                backstab_dmg = wpn->GetItem()->BackstabDmg;
+               for(int x = 0; x < 5; x++) {
+                       if(wpn->GetAugment(x) && wpn->GetAugment(x)->GetItem())
+                               backstab_dmg += wpn->GetAugment(x)->GetItem()->BackstabDmg;
+               }
        }
        else{
                primaryweapondamage = (GetLevel()/7)+1; // fallback incase it's a npc without a weapon, 2 dmg at 10, 10 dmg at 65
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 06: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