EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   NPCs not gaining stats for offhand (https://www.eqemulator.org/forums/showthread.php?t=30591)

bad_captain 02-15-2010 11:58 AM

NPCs not gaining stats for offhand
 
Code:

--- bonuses.cpp        (revision 991)
+++ bonuses.cpp        (working copy)
@@ -1126,7 +1126,7 @@
 {
        if(newbon){
 
-                for(int i = 0; i < 8; i++){
+                for(int i = 0; i < MAX_MATERIALS; i++){
                        const Item_Struct *cur = database.GetItem(equipment[i]);
                        if(cur){
                                //basic stats

Noticed that pets with 2 summoned pet weapons only gained 50 HP from main hand, slot 9 is secondary. This is in NPC::CalcItemBonuses(StatBonuses *newbon).


All times are GMT -4. The time now is 09:40 PM.

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