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

Method multiply

source/game/StarItemDescriptor.cpp:69–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69ItemDescriptor ItemDescriptor::multiply(uint64_t count) const {
70 return ItemDescriptor(name(), this->count() * count, parameters(), m_parametersHash);
71}
72
73ItemDescriptor ItemDescriptor::applyParameters(JsonObject const& parameters) const {
74 return ItemDescriptor(name(), this->count(), this->parameters().setAll(parameters));

Callers 3

consumeItemsMethod · 0.45
collectLiquidMethod · 0.45
makePlayerCallbacksMethod · 0.45

Calls 3

countMethod · 0.95
ItemDescriptorClass · 0.85
nameFunction · 0.85

Tested by

no test coverage detected