[Cleanup] Cleanup AddCash() and RemoveCash() NPC Methods (#3957)

# Notes
- `AddCash()` was `uint16` in C++/Perl and `int` in Lua, fix these to `uint32`.
- Consolidate logic in `AddCash()`.
This commit is contained in:
Alex King
2024-01-12 02:53:01 -05:00
committed by GitHub
parent 53d6e449c2
commit 2475092ed9
5 changed files with 18 additions and 28 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ public:
void RemoveItem(int item_id, int quantity);
void RemoveItem(int item_id, int quantity, int slot);
void ClearItemList();
void AddCash(int copper, int silver, int gold, int platinum);
void AddCash(uint32 copper, uint32 silver, uint32 gold, uint32 platinum);
void RemoveCash();
int CountLoot();
int GetLoottableID();