MCPcopy Create free account
hub / github.com/DFHack/dfhack / isInWheelbarrow

Function isInWheelbarrow

plugins/buildingplan/buildingplan_cycle.cpp:101–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101static bool isInWheelbarrow(color_ostream& out, df::item* item) {
102 auto container = Items::getContainer(item);
103 if (!container || container->getType() != df::item_type::TOOL)
104 return false;
105 return container->hasToolUse(df::tool_uses::HEAVY_OBJECT_HAULING);
106}
107
108bool isInIgnoreBurrow(df::item *item){
109 auto ignore_burrow = getIgnoreBurrow();

Callers 1

itemPassesScreenFunction · 0.85

Calls 1

getTypeMethod · 0.80

Tested by

no test coverage detected