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

Function isAvailableItem

plugins/autoclothing.cpp:682–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680);
681
682static bool isAvailableItem(df::item *item) {
683 return (item->flags.whole & bad_flags) == 0
684 && item->getWear() < 1
685 && item->isClothing();
686}
687
688static void generate_control(color_ostream &out) {
689 map<int, int> fullUnitList;

Callers 1

generate_controlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected