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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2009, 12:05 AM
realityincarnate
Developer
 
Join Date: Dec 2007
Posts: 122
Default Bandolier fix

This is a really minor issue, but I noticed that when using bandolier to switch between weapons and bard instruments, the instrument bonuses were not being calculated after the switch. I assume (but haven't noticed) that this is true of other bonuses as well. Adding a CalcBonuses() function call to the end seems to have resolved the issue.

Code:
Index: inventory.cpp
===================================================================
--- inventory.cpp	(revision 373)
+++ inventory.cpp	(working copy)
@@ -1464,6 +1464,8 @@
 			}
 		}
 	}
+	// finally, recalculate any stat bonuses from the item change
+	CalcBonuses();
 }
 
 bool Client::MoveItemToInventory(ItemInst *ItemToReturn, bool UpdateClient) {
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 10:30 PM.


 

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