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

Function get_protect_str

plugins/autochop.cpp:603–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601//
602
603static const char * get_protect_str(bool protect_brewable, bool protect_edible, bool protect_cookable) {
604 if (!protect_brewable && !protect_edible && !protect_cookable)
605 return " ";
606 if (!protect_brewable && !protect_edible && protect_cookable)
607 return " z";
608 if (!protect_brewable && protect_edible && !protect_cookable)
609 return " e ";
610 if (!protect_brewable && protect_edible && protect_cookable)
611 return " ez";
612 if (protect_brewable && !protect_edible && !protect_cookable)
613 return "b ";
614 if (protect_brewable && !protect_edible && protect_cookable)
615 return "b z";
616 if (protect_brewable && protect_edible && !protect_cookable)
617 return "be ";
618 if (protect_brewable && protect_edible && protect_cookable)
619 return "bez";
620 return "";
621}
622
623static void autochop_printStatus(color_ostream &out) {
624 DEBUG(control,out).print("entering autochop_printStatus\n");

Callers 1

autochop_printStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected