Difference between revisions of "CInventory::RemoveItems"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> 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. </o...")
 
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 17:44, 22 September 2012

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