CInventory::RemoveItems

From King Arthur's Gold Wiki
Revision as of 17:44, 22 September 2012 by Shadlington (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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