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