Enabled probe, and fixed the one thing preventing it from compiling.

Before this can be considered updated, it would need to be able to find the currently selected building or creature from the game, but it does work as-is when the keyboard cursor is enabled in the game.
develop
Rose 2023-01-07 21:06:47 -08:00
parent f9cc43728f
commit 60a2f615c0
2 changed files with 3 additions and 3 deletions

@ -144,7 +144,7 @@ dfhack_plugin(overlay overlay.cpp LINK_LIBRARIES lua)
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(probe probe.cpp)
#dfhack_plugin(prospector prospector.cpp LINK_LIBRARIES lua)
#dfhack_plugin(power-meter power-meter.cpp LINK_LIBRARIES lua)
#dfhack_plugin(regrass regrass.cpp)

@ -477,8 +477,8 @@ command_result df_bprobe (color_ostream &out, vector <string> & parameters)
out.print(", subtype %i", building.subtype);
break;
}
if(building.origin->is_room) //isRoom())
out << ", room";
if(building.origin->relations.size()) //Connected to rooms.
out << ", " << building.origin->relations.size() << " rooms";
if(building.origin->getBuildStage()!=building.origin->getMaxBuildStage())
out << ", in construction";
out.print("\n");