reenable prospector in fort mode

fort mode prospect works. embark mode prospect doesn't crash but generates nonsense data, so that code has been disabled for now
develop
Kelly Kinkade 2023-03-20 11:00:25 -05:00
parent 400c706804
commit 42e21bf946
3 changed files with 7 additions and 1 deletions

@ -34,6 +34,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
# Future
## New Plugins
- `prospector`: prospector tool in fort mode is now available. embark prospect is not yet available and is disabled at this time.
## Fixes

@ -140,7 +140,7 @@ dfhack_plugin(pathable pathable.cpp LINK_LIBRARIES lua)
#dfhack_plugin(petcapRemover petcapRemover.cpp)
#dfhack_plugin(plants plants.cpp)
dfhack_plugin(probe probe.cpp)
#dfhack_plugin(prospector prospector.cpp LINK_LIBRARIES lua)
dfhack_plugin(prospector prospector.cpp LINK_LIBRARIES lua)
#dfhack_plugin(power-meter power-meter.cpp LINK_LIBRARIES lua)
dfhack_plugin(regrass regrass.cpp)
add_subdirectory(remotefortressreader)

@ -565,6 +565,10 @@ static command_result embark_prospector(color_ostream &out,
df::viewscreen_choose_start_sitest *screen,
const prospect_options &options)
{
out.printerr("prospector at embark is not currently available.\n");
return CR_FAILURE;
/*
if (!world || !world->world_data)
{
out.printerr("World data is not available.\n");
@ -621,6 +625,7 @@ static command_result embark_prospector(color_ostream &out,
out << std::endl << "Warning: the above data is only a very rough estimate." << std::endl;
return CR_OK;
*/
}
static command_result map_prospector(color_ostream &con,