diff options
| author | Petr Mrázek | 2012-03-11 22:25:30 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-03-11 22:25:30 +0100 |
| commit | 3b87f7bd3ad0d948211865cb2608ba75c35514bb (patch) | |
| tree | 7c14d85f10632495147fc05f987dfdae9fd8d594 /plugins/probe.cpp | |
| parent | 32cc4c892889110644ebfeb5e4a2e5859bd057cf (diff) | |
| download | dfhack-3b87f7bd3ad0d948211865cb2608ba75c35514bb.tar.gz dfhack-3b87f7bd3ad0d948211865cb2608ba75c35514bb.tar.bz2 dfhack-3b87f7bd3ad0d948211865cb2608ba75c35514bb.tar.xz | |
Add revforget command, lair plugin
revforget throws away data reveal keeps in order to be able to hide
the revealed parts of the map
lair allows marking the map as monster lair (or the opposite while
using the 'reset' option)
Diffstat (limited to 'plugins/probe.cpp')
| -rw-r--r-- | plugins/probe.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/plugins/probe.cpp b/plugins/probe.cpp index 04448d01..6b6d406c 100644 --- a/plugins/probe.cpp +++ b/plugins/probe.cpp @@ -145,6 +145,7 @@ command_result df_probe (color_ostream &out, vector <string> & parameters) */ df::tiletype tiletype = mc.tiletypeAt(cursor); df::tile_designation &des = block.designation[tileX][tileY]; + df::tile_occupancy &occ = block.occupancy[tileX][tileY]; /* if(showDesig) { @@ -237,20 +238,21 @@ command_result df_probe (color_ostream &out, vector <string> & parameters) if(des.bits.water_stagnant) out << "stagnant" << endl; - #define PRINT_FLAG( X ) out.print("%-16s= %c\n", #X , ( des.X ? 'Y' : ' ' ) ) - PRINT_FLAG( bits.hidden ); - PRINT_FLAG( bits.light ); - PRINT_FLAG( bits.outside ); - PRINT_FLAG( bits.subterranean ); - PRINT_FLAG( bits.water_table ); - PRINT_FLAG( bits.rained ); + #define PRINT_FLAG( FIELD, BIT ) out.print("%-16s= %c\n", #BIT , ( FIELD.bits.BIT ? 'Y' : ' ' ) ) + PRINT_FLAG( des, hidden ); + PRINT_FLAG( des, light ); + PRINT_FLAG( des, outside ); + PRINT_FLAG( des, subterranean ); + PRINT_FLAG( des, water_table ); + PRINT_FLAG( des, rained ); + PRINT_FLAG( occ, monster_lair); df::coord2d pc(blockX, blockY); t_feature local; t_feature global; Maps::ReadFeatures(&(b->raw),&local,&global); - PRINT_FLAG( bits.feature_local ); + PRINT_FLAG( des, feature_local ); if(local.type != -1) { out.print("%-16s", ""); @@ -259,7 +261,7 @@ command_result df_probe (color_ostream &out, vector <string> & parameters) out.print(" addr 0x%X ", local.origin); out.print(" %s\n", sa_feature(local.type)); } - PRINT_FLAG( bits.feature_global ); + PRINT_FLAG( des, feature_global ); if(global.type != -1) { out.print("%-16s", ""); |
