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

Method makeRecipe

source/game/StarItemDatabase.cpp:548–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548ItemRecipe ItemDatabase::makeRecipe(List<ItemDescriptor> inputs, ItemDescriptor output, float duration, StringSet groups) const {
549 ItemRecipe res;
550 res.inputs = std::move(inputs);
551 res.output = std::move(output);
552 res.duration = duration;
553 res.groups = std::move(groups);
554 if (auto item = ItemDatabase::itemShared(res.output)) {
555 res.outputRarity = item->rarity();
556 res.guiFilterString = guiFilterString(item);
557 }
558 return res;
559}
560
561void ItemDatabase::addItemSet(ItemType type, String const& extension) {
562 auto assets = Root::singleton().assets();

Callers

nothing calls this directly

Calls 1

rarityMethod · 0.45

Tested by

no test coverage detected