tweak farm-plot-select: Don't require crops to be discovered

Crops whose seeds haven't been discovered are still listed in
menus as of 0.40.10
develop
lethosor 2015-07-24 11:13:13 -04:00
parent 6c55164be4
commit f1a6e5fbe9
2 changed files with 17 additions and 19 deletions

@ -64,7 +64,9 @@ DFHack Future
- Supports fortress mode loo[k] menu
- Recognizes ? and ; keys
teleport: Fixed cursor recognition
tweak: debug output now logged to stderr.log instead of console
tweak:
- debug output now logged to stderr.log instead of console - makes DFHack start faster
- farm-plot-select: Fixed issues with selecting undiscovered crops
workflow: Improved handling of plant reactions
Removed

@ -23,9 +23,6 @@ struct farm_select_hook : df::viewscreen_dwarfmodest {
{
// Adapted from autofarm
using namespace df::enums::plant_raw_flags;
// Discovered?
if (ui->tasks.discovered_plants[crop_id])
{
// Possible to plant?
df::plant_raw* raws = world->raws.plants.all[crop_id];
if (raws->flags.is_set(SEED) && raws->flags.is_set((df::plant_raw_flags)season))
@ -44,7 +41,6 @@ struct farm_select_hook : df::viewscreen_dwarfmodest {
return true;
}
}
}
return false;
}