address feedback

This commit is contained in:
Aaron Kimbre 2023-11-19 20:24:04 -06:00
parent 0cb64d3209
commit 3d0ba3c5cf
3 changed files with 4 additions and 9 deletions

View File

@ -29,12 +29,6 @@ void CDRewardCodesTable::LoadValuesFromDatabase() {
this->entries.push_back(entry);
tableData.nextRow();
}
tableData.finalize();
}
const std::vector<CDRewardCode>& CDRewardCodesTable::GetEntries() const {
return this->entries;
}
LOT CDRewardCodesTable::GetAttachmentLOT(uint32_t rewardCodeId) const {

View File

@ -768,10 +768,10 @@ void CharacterComponent::AwardClaimCodes() {
if (rewardCodes.empty()) return;
auto* cdrewardCodes = CDClientManager::Instance().GetTable<CDRewardCodesTable>();
for (auto rewardCode: rewardCodes){
for (auto const rewardCode: rewardCodes){
LOG_DEBUG("Processing RewardCode %i", rewardCode);
int rewardCodeIndex = rewardCode >> 6;
int bitIndex = rewardCode % 64;
const uint32_t rewardCodeIndex = rewardCode >> 6;
const uint32_t bitIndex = rewardCode % 64;
if (GeneralUtils::CheckBit(m_ClaimCodes[rewardCodeIndex], bitIndex)) continue;
m_ClaimCodes[rewardCodeIndex] = GeneralUtils::SetBit(m_ClaimCodes[rewardCodeIndex], bitIndex);

View File

@ -112,6 +112,7 @@ These commands are primarily for development and testing. The usage of many of t
|setfaction|`/setfaction <faction id>`|Clears the users current factions and sets it|8|
|addfaction|`/addfaction <faction id>`|Add the faction to the users list of factions|8|
|getfactions|`/getfactions`|Shows the player's factions|8|
|setrewardcode|`/setrewardcode <code>`|Sets the rewardcode for the account you are logged into if it's a valid rewardcode, See cdclient table `RewardCodes`|8|
## Detailed `/inspect` Usage
`/inspect <component> (-m <waypoint> | -a <animation> | -s | -p | -f (faction) | -t)`