|
|
@ -43,6 +43,7 @@ All rights reserved. |
|
|
|
#include "olcUTIL_DataFile.h" |
|
|
|
#include "olcUTIL_DataFile.h" |
|
|
|
#include "AttributableStat.h" |
|
|
|
#include "AttributableStat.h" |
|
|
|
#include "BitwiseEnum.h" |
|
|
|
#include "BitwiseEnum.h" |
|
|
|
|
|
|
|
#include <optional> |
|
|
|
|
|
|
|
|
|
|
|
class Crawler; |
|
|
|
class Crawler; |
|
|
|
class ItemInfo; |
|
|
|
class ItemInfo; |
|
|
@ -142,7 +143,7 @@ public: |
|
|
|
std::string Description(CompactText compact=COMPACT); |
|
|
|
std::string Description(CompactText compact=COMPACT); |
|
|
|
const ITCategory Category()const; |
|
|
|
const ITCategory Category()const; |
|
|
|
EquipSlot GetEquipSlot(); |
|
|
|
EquipSlot GetEquipSlot(); |
|
|
|
Decal*Decal(); |
|
|
|
::Decal*Decal(); |
|
|
|
const Stats GetStats()const; |
|
|
|
const Stats GetStats()const; |
|
|
|
ItemScript&OnUseAction(); |
|
|
|
ItemScript&OnUseAction(); |
|
|
|
float CastTime(); |
|
|
|
float CastTime(); |
|
|
@ -152,7 +153,7 @@ public: |
|
|
|
void EnhanceItem(); |
|
|
|
void EnhanceItem(); |
|
|
|
static Item BLANK; |
|
|
|
static Item BLANK; |
|
|
|
bool operator==(const Item&rhs)const; |
|
|
|
bool operator==(const Item&rhs)const; |
|
|
|
const std::optional<const ItemSet *const>&ItemSet()const; |
|
|
|
const std::optional<const ::ItemSet *const>ItemSet()const; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
class Inventory{ |
|
|
|
class Inventory{ |
|
|
@ -212,7 +213,7 @@ class ItemInfo{ |
|
|
|
float cooldownTime=0; |
|
|
|
float cooldownTime=0; |
|
|
|
EquipSlot slot; |
|
|
|
EquipSlot slot; |
|
|
|
EnhancementInfo enhancement; |
|
|
|
EnhancementInfo enhancement; |
|
|
|
Decal*img; |
|
|
|
::Decal*img; |
|
|
|
std::string set=""; |
|
|
|
std::string set=""; |
|
|
|
//Returns true if the item can be used, false otherwise
|
|
|
|
//Returns true if the item can be used, false otherwise
|
|
|
|
std::string useFunc=""; |
|
|
|
std::string useFunc=""; |
|
|
@ -230,7 +231,7 @@ public: |
|
|
|
std::string Name(); |
|
|
|
std::string Name(); |
|
|
|
std::string Description(); |
|
|
|
std::string Description(); |
|
|
|
ITCategory Category(); |
|
|
|
ITCategory Category(); |
|
|
|
Decal*Decal(); |
|
|
|
::Decal*Decal(); |
|
|
|
/*
|
|
|
|
/*
|
|
|
|
For the useFunc, return true if the item can be used, false otherwise. |
|
|
|
For the useFunc, return true if the item can be used, false otherwise. |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -239,7 +240,7 @@ public: |
|
|
|
float CastTime(); |
|
|
|
float CastTime(); |
|
|
|
float CooldownTime(); |
|
|
|
float CooldownTime(); |
|
|
|
EquipSlot Slot(); |
|
|
|
EquipSlot Slot(); |
|
|
|
const std::optional<const ItemSet *const>ItemSet()const; |
|
|
|
const std::optional<const ::ItemSet *const>ItemSet()const; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
class ItemOverlay{ |
|
|
|
class ItemOverlay{ |
|
|
|