2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Custom Classes
|
|
|
|
#include "CDTable.h"
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
|
|
|
|
struct CDItemComponent {
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t id; //!< The Component ID
|
2021-12-05 17:54:36 +00:00
|
|
|
std::string equipLocation; //!< The equip location
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t baseValue; //!< The monetary base value of the item
|
2021-12-05 17:54:36 +00:00
|
|
|
bool isKitPiece; //!< Whether or not the item belongs to a kit
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t rarity; //!< The rarity of the item
|
|
|
|
uint32_t itemType; //!< The item type
|
2021-12-05 17:54:36 +00:00
|
|
|
int64_t itemInfo; //!< The item info
|
|
|
|
bool inLootTable; //!< Whether or not the item is in a loot table
|
|
|
|
bool inVendor; //!< Whether or not the item is in a vendor inventory
|
|
|
|
bool isUnique; //!< ???
|
|
|
|
bool isBOP; //!< ???
|
|
|
|
bool isBOE; //!< ???
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t reqFlagID; //!< User must have completed this flag to get the item
|
|
|
|
uint32_t reqSpecialtyID; //!< ???
|
|
|
|
uint32_t reqSpecRank; //!< ???
|
|
|
|
uint32_t reqAchievementID; //!< The required achievement must be completed
|
|
|
|
uint32_t stackSize; //!< The stack size of the item
|
|
|
|
uint32_t color1; //!< Something to do with item color...
|
|
|
|
uint32_t decal; //!< The decal of the item
|
|
|
|
uint32_t offsetGroupID; //!< Something to do with group IDs
|
|
|
|
uint32_t buildTypes; //!< Something to do with building
|
2021-12-05 17:54:36 +00:00
|
|
|
std::string reqPrecondition; //!< The required precondition
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t animationFlag; //!< The Animation Flag
|
|
|
|
uint32_t equipEffects; //!< The effect played when the item is equipped
|
2021-12-05 17:54:36 +00:00
|
|
|
bool readyForQA; //!< ???
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t itemRating; //!< ???
|
2021-12-05 17:54:36 +00:00
|
|
|
bool isTwoHanded; //!< Whether or not the item is double handed
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t minNumRequired; //!< Maybe the minimum number required for a mission, or to own this object?
|
|
|
|
uint32_t delResIndex; //!< ???
|
|
|
|
uint32_t currencyLOT; //!< ???
|
|
|
|
uint32_t altCurrencyCost; //!< ???
|
2021-12-05 17:54:36 +00:00
|
|
|
std::string subItems; //!< A comma seperate string of sub items (maybe for multi-itemed things like faction test gear set)
|
|
|
|
UNUSED(std::string audioEventUse); //!< ???
|
|
|
|
bool noEquipAnimation; //!< Whether or not there is an equip animation
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t commendationLOT; //!< The commendation LOT
|
|
|
|
uint32_t commendationCost; //!< The commendation cost
|
2021-12-05 17:54:36 +00:00
|
|
|
UNUSED(std::string audioEquipMetaEventSet); //!< ???
|
|
|
|
std::string currencyCosts; //!< Used for crafting
|
|
|
|
UNUSED(std::string ingredientInfo); //!< Unused
|
2024-01-09 07:54:14 +00:00
|
|
|
uint32_t locStatus; //!< ???
|
|
|
|
uint32_t forgeType; //!< Forge Type
|
2021-12-05 17:54:36 +00:00
|
|
|
float SellMultiplier; //!< Something to do with early vendors perhaps (but replaced)
|
|
|
|
};
|
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
class CDItemComponentTable : public CDTable<CDItemComponentTable> {
|
2021-12-05 17:54:36 +00:00
|
|
|
private:
|
2024-01-09 07:54:14 +00:00
|
|
|
std::map<uint32_t, CDItemComponent> entries;
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
public:
|
2023-08-11 04:27:40 +00:00
|
|
|
void LoadValuesFromDatabase();
|
2021-12-05 17:54:36 +00:00
|
|
|
static std::map<LOT, uint32_t> ParseCraftingCurrencies(const CDItemComponent& itemComponent);
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
// Gets an entry by ID
|
2024-01-09 07:54:14 +00:00
|
|
|
const CDItemComponent& GetItemComponentByID(uint32_t skillID);
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
static CDItemComponent Default;
|
|
|
|
};
|