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:
2023-12-23 21:15:08 -06:00
parent 51cbf81204
commit 668a5ca1b1
28 changed files with 704 additions and 331 deletions
+6
View File
@@ -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)
{