as of v50, soap, coal, and ash are no longer valid building materials
| 84 | |
| 85 | // as of v50, soap, coal, and ash are no longer valid building materials |
| 86 | static bool isUnusableBar(color_ostream& out, df::item* item) { |
| 87 | if (item->getType() != df::item_type::BAR) |
| 88 | return false; |
| 89 | |
| 90 | MaterialInfo minfo(item); |
| 91 | string token = minfo.getToken(); |
| 92 | if (token.starts_with("COAL:") || token == "ASH") |
| 93 | return true; |
| 94 | |
| 95 | df::job_item_flags2 ok; |
| 96 | df::job_item_flags2 mask; |
| 97 | minfo.getMatchBits(ok, mask); |
| 98 | return ok.bits.soap; |
| 99 | } |
| 100 | |
| 101 | static bool isInWheelbarrow(color_ostream& out, df::item* item) { |
| 102 | auto container = Items::getContainer(item); |
no test coverage detected