mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-06 23:31:18 +00:00
Implement skill contributor tracking to fix multiple items with same skill issue
Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include <map>
|
||||
#include <stack>
|
||||
#include <set>
|
||||
|
||||
|
||||
#include "BehaviorSlot.h"
|
||||
@@ -426,6 +427,12 @@ private:
|
||||
*/
|
||||
std::map<BehaviorSlot, uint32_t> m_Skills;
|
||||
|
||||
/**
|
||||
* Tracks which items (by LOT) contribute skills to each behavior slot
|
||||
* Used to properly manage skills when multiple items provide the same skill to the same slot
|
||||
*/
|
||||
std::map<BehaviorSlot, std::set<LOT>> m_SkillContributors;
|
||||
|
||||
/**
|
||||
* The pets this entity has, mapped by object ID and pet info
|
||||
*/
|
||||
|
Reference in New Issue
Block a user