[Rules] Update logic checks everywhere for FVNoDropFlag. (#2179)

* Update logic checks everywhere for FVNoDropFlag.

FVNoDropFlag == 0 is disabled
FVNoDropFlag == 1 is enabled for everyone
FVNoDropFlag == 2 is enabled for Admin() >= Character:MinStatusForNoDropExemptions

* Adding extra parenthesis to reduce ambiquity of order of operations for FVNoDropFlag checks

* Move FVNoDropFlag checks into a helper function in emu_constants.cpp and make an enum for the possible values.
Added console warning if setting is outside of allowed values.

* Move to client scoped helper method

Co-authored-by: Akkadius <akkadius1@gmail.com>
This commit is contained in:
QuintinonandAkkadius authored and GitHub committed 2022-07-30 13:16:47 -05:00
1 parent 3bda8251b9
commit c68ff9bc5a
9 files changed
+68 -20

No files matched your search

+1
View File
@@ -2049,6 +2049,7 @@ private:
bool m_bot_precombat;
#endif
bool CanTradeFVNoDropItem();
};
#endif