From 8c049389a491a6fcbfff9b16c2877268a025b9f8 Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Wed, 15 Jan 2020 19:31:19 +0100 Subject: [PATCH] Reverted STOCKPILE_PLANT_GROWTH to LEAF_MAT --- plugins/getplants.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/getplants.cpp b/plugins/getplants.cpp index 8e4384879..001400681 100644 --- a/plugins/getplants.cpp +++ b/plugins/getplants.cpp @@ -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,16 +333,17 @@ command_result df_getplants (color_ostream &out, vector & parameters) } } if (count) + { if (verbose) { for (auto i = 0; i < plantSelections.size(); i++) { - if (collectionCount [i] > 0) - out.print("Updated %i %s designations.\n", collectionCount [i], world->raws.plants.all [i]->id.c_str()); + if (collectionCount[i] > 0) + out.print("Updated %i %s designations.\n", collectionCount[i], world->raws.plants.all[i]->id.c_str()); } out.print("\n"); } - + } out.print("Updated %d plant designations.\n", count); return CR_OK;