mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 04:16:46 +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
-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