MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / doConsumeItems

Method doConsumeItems

source/game/objects/StarContainerObject.cpp:526–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526bool ContainerObject::doConsumeItems(ItemDescriptor const& descriptor) {
527 if (m_items->consumeItems(descriptor)) {
528 itemsUpdated();
529 return true;
530 }
531
532 return false;
533}
534
535bool ContainerObject::doConsumeItems(size_t slot, size_t count) {
536 if (m_items->consumeItems(slot, count)) {

Callers

nothing calls this directly

Calls 1

consumeItemsMethod · 0.45

Tested by

no test coverage detected