Item Attribute systems reworked from being an enum class to being a class. Added support for the Buff Item Script to modify items. Implemented Damage Reduction proposal.
This commit is contained in:
@@ -114,6 +114,12 @@ namespace olc::utils
|
||||
return std::atoi(GetString(nItem).c_str());
|
||||
}
|
||||
|
||||
// Retrieves the Boolean Value of a Property (for a given index) or 0
|
||||
inline const bool GetBool(const size_t nItem = 0) const
|
||||
{
|
||||
return GetString(nItem).starts_with('T')||GetString(nItem).starts_with('t');
|
||||
}
|
||||
|
||||
// Sets the Integer Value of a Property (for a given index)
|
||||
inline void SetInt(const int32_t n, const size_t nItem = 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user