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

Function dryBucket

plugins/workflow.cpp:969–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967 ******************************/
968
969static void dryBucket(df::item *item)
970{
971 for (size_t i = 0; i < item->general_refs.size(); i++)
972 {
973 df::general_ref *ref = item->general_refs[i];
974 if (ref->getType() == general_ref_type::CONTAINS_ITEM)
975 {
976 df::item *obj = ref->getItem();
977
978 if (obj &&
979 obj->getType() == item_type::LIQUID_MISC &&
980 obj->getMaterial() == builtin_mats::WATER)
981 {
982 obj->flags.bits.garbage_collect = true;
983 obj->flags.bits.hidden = true;
984 }
985 }
986 }
987}
988
989static bool itemBusy(df::item *item)
990{

Callers 1

map_job_itemsFunction · 0.85

Calls 2

getTypeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected