Repaired some bugs

- Fixed Team loot
- LMI dropping for team sizes
- No more > 4 player teams
This commit is contained in:
Jett
2021-12-24 00:25:52 +00:00
parent 0afba0d1d3
commit 9440af0d67
4 changed files with 62 additions and 11 deletions

View File

@@ -328,6 +328,13 @@ public:
* @param mapID the map ID to set
*/
void SetInstanceMapID(uint32_t mapID) { m_ActivityInfo.instanceMapID = mapID; };
/**
* Returns the LMI that this activity points to for a team size
* @param teamSize the team size to get the LMI for
* @return the LMI that this activity points to for a team size
*/
uint32_t GetLootMatrixForTeamSize(uint32_t teamSize) { return m_ActivityLootMatrices[teamSize]; }
private:
/**
@@ -349,6 +356,11 @@ private:
* All the activity score for the players in this activity
*/
std::vector<ActivityPlayer*> m_ActivityPlayers;
/**
* LMIs for team sizes
*/
std::unordered_map<uint32_t, uint32_t> m_ActivityLootMatrices;
};
#endif // SCRIPTEDACTIVITYCOMPONENT_H