|
|
|
@ -94,7 +94,7 @@ selectability selectablePlant(const df::plant_raw *plant)
|
|
|
|
|
(growth_mat.material->flags.is_set(material_flags::EDIBLE_COOKED) ||
|
|
|
|
|
growth_mat.material->flags.is_set(material_flags::EDIBLE_RAW))) ||
|
|
|
|
|
(plant->growths[i]->item_type == df::item_type::PLANT_GROWTH &&
|
|
|
|
|
growth_mat.material->flags.is_set(material_flags::STOCKPILE_PLANT_GROWTH)))
|
|
|
|
|
growth_mat.material->flags.is_set(material_flags::LEAF_MAT))) // Will change name to STOCKPILE_PLANT_GROWTH any day now...
|
|
|
|
|
{
|
|
|
|
|
if (*cur_year_tick >= plant->growths[i]->timing_1 &&
|
|
|
|
|
(plant->growths[i]->timing_2 == -1 ||
|
|
|
|
@ -333,6 +333,7 @@ command_result df_getplants (color_ostream &out, vector <string> & parameters)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (count)
|
|
|
|
|
{
|
|
|
|
|
if (verbose)
|
|
|
|
|
{
|
|
|
|
|
for (auto i = 0; i < plantSelections.size(); i++)
|
|
|
|
@ -342,7 +343,7 @@ command_result df_getplants (color_ostream &out, vector <string> & parameters)
|
|
|
|
|
}
|
|
|
|
|
out.print("\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
out.print("Updated %d plant designations.\n", count);
|
|
|
|
|
|
|
|
|
|
return CR_OK;
|
|
|
|
|