LandSandBoat / server

:sailboat: LandSandBoat - a server emulator for Final Fantasy XI. Just an X-34 landspeeder out for a drive.
https://landsandboat.github.io/server/
GNU General Public License v3.0
277 stars 543 forks source link

[Core] Adds missing quantity count to charutils getItemCount #5971

Closed LoxleyXI closed 1 week ago

LoxleyXI commented 1 week ago

I affirm:

What does this pull request do?

getItemCount isn't factoring in quantity, eg. player:getItemCount(1455) returns 1 if a player has 1 Byne Bill x99. This change fixes the issue.

Steps to test these changes

Tested with stacking and non-stacking items and if player has no matching items.

Xaver-DaRed commented 1 week ago

Nothing like having 5 functions with the same name