| 551 | using color_type = decltype(MaterialInfo::material->powder_dye); |
| 552 | |
| 553 | static auto product_is_dye (df::reaction_product* r) -> bool |
| 554 | { |
| 555 | if (r->getType() == df::reaction_product_type::item) |
| 556 | { |
| 557 | auto rr = virtual_cast<df::reaction_product_itemst> (r); |
| 558 | auto mat = MaterialInfo(rr->mat_type, rr->mat_index); |
| 559 | return mat.material && mat.material->flags.is_set(df::enums::material_flags::IS_DYE); |
| 560 | } |
| 561 | return false; |
| 562 | }; |
| 563 | |
| 564 | oqt order_dye_from_reaction(df::reaction* r, int c = 1) |
| 565 | { |
nothing calls this directly
no test coverage detected