mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-01 16:32:21 +00:00
[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:
1 parent
53d6e449c2
commit
2475092ed9
5 files changed
+18
-28
No files matched your search
+1
-1
@@ -91,7 +91,7 @@ void Perl_NPC_ClearItemList(NPC* self) // @categories Inventory and Items
|
||||
self->ClearItemList();
|
||||
}
|
||||
|
||||
void Perl_NPC_AddCash(NPC* self, uint16 copper, uint16 silver, uint16 gold, uint16 platinum) // @categories Currency and Points
|
||||
void Perl_NPC_AddCash(NPC* self, uint32 copper, uint32 silver, uint32 gold, uint32 platinum) // @categories Currency and Points
|
||||
{
|
||||
self->AddCash(copper, silver, gold, platinum);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user