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

Method maxCraftableInBag

source/game/StarItemDatabase.cpp:294–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294uint64_t ItemDatabase::maxCraftableInBag(List<ItemPtr> const& bag, StringMap<uint64_t> const& availableCurrencies, ItemRecipe const& recipe) const {
295 auto normalizedBag = normalizeBag(bag);
296
297 return maxCraftableInBag(normalizedBag, availableCurrencies, recipe);
298}
299
300uint64_t ItemDatabase::maxCraftableInBag(HashMap<ItemDescriptor, uint64_t> const& bag, StringMap<uint64_t> const& availableCurrencies, ItemRecipe const& recipe) const {
301 uint64_t res = highest<uint64_t>();

Callers 1

maxCraftMethod · 0.80

Calls 5

singularMethod · 0.80
valueMethod · 0.45
containsMethod · 0.45
countMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected