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

Method isRequestedTradeGood

library/modules/Items.cpp:1957–1966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1955}
1956
1957bool Items::isRequestedTradeGood(df::item *item, df::caravan_state *caravan) {
1958 CHECK_NULL_POINTER(item);
1959 if (caravan)
1960 return is_requested_trade_good(item, caravan);
1961
1962 for (auto caravan : df::global::plotinfo->caravans)
1963 if (is_requested_trade_good(item, caravan))
1964 return true;
1965 return false;
1966}
1967
1968bool Items::usesStandardMaterial(df::item_type item_type)
1969{

Callers

nothing calls this directly

Calls 1

is_requested_trade_goodFunction · 0.85

Tested by

no test coverage detected