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

Method fireTriggered

source/game/items/StarBlueprintItem.cpp:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void BlueprintItem::fireTriggered() {
36 if (count())
37 if (auto player = as<Player>(owner()))
38 if (player->addBlueprint(m_recipe, true))
39 setCount(count() - 1);
40}
41
42List<Drawable> BlueprintItem::iconDrawables() const {
43 List<Drawable> result;

Callers

nothing calls this directly

Calls 2

countFunction · 0.85
addBlueprintMethod · 0.80

Tested by

no test coverage detected