CInventory::RemoveItems

From King Arthur's Gold Wiki
Jump to: navigation, search

Removes the a given quantity of CBlobs from this inventory by name. Returns true if there were as many matching items removed as requested, otherwise false.


The first argument is the name to match CBlobs by, the second argument is the quantity of them to remove. If the quantity is 0 it will entirely remove the first stack of matching CBlobs it finds.

The method will only return full if there were at least as many matching CBlobs as the quantity argument (or at least one stack if quantity was 0).

bool RemoveItems(const string &blobName, int quantity)

Object method of: CInventory