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

Function needsItems

library/modules/Buildings.cpp:1154–1168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1152}
1153
1154static bool needsItems(df::building *bld)
1155{
1156 if (!bld->isActual())
1157 return false;
1158
1159 switch (bld->getType())
1160 {
1161 case building_type::FarmPlot:
1162 case building_type::RoadDirt:
1163 return false;
1164
1165 default:
1166 return true;
1167 }
1168}
1169
1170bool Buildings::constructWithItems(df::building *bld, std::vector<df::item*> items)
1171{

Callers 2

constructWithItemsMethod · 0.85
constructWithFiltersMethod · 0.85

Calls 1

getTypeMethod · 0.80

Tested by

no test coverage detected