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

Method can_designate

plugins/logistics.cpp:258–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256 }
257
258 bool can_designate(color_ostream &out, df::item *item) override {
259 if (!melt_masterworks && item->getQuality() >= df::item_quality::Masterful)
260 return false;
261 return !item->flags.bits.forbid && Items::canMelt(item);
262 }
263
264 bool designate(color_ostream &out, df::item *item) override {
265 Items::markForMelting(item);

Callers 1

scan_itemFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected