diff options
| author | Robert Heinrich | 2012-04-22 20:26:12 +0200 |
|---|---|---|
| committer | Robert Heinrich | 2012-04-22 20:26:12 +0200 |
| commit | 045b7b6a20df6d1d9ab4a85e81f95569735cdbff (patch) | |
| tree | 86acec78e733ce06d9fd8c806f99f38c82f53ba1 /plugins/probe.cpp | |
| parent | 760bc8b09f55413873a611a5c5f86344476f479a (diff) | |
| parent | 26cec5f60c120b7ea4ce4592ef926bd11f2c2cc4 (diff) | |
| download | dfhack-045b7b6a20df6d1d9ab4a85e81f95569735cdbff.tar.gz dfhack-045b7b6a20df6d1d9ab4a85e81f95569735cdbff.tar.bz2 dfhack-045b7b6a20df6d1d9ab4a85e81f95569735cdbff.tar.xz | |
Merge branch 'master' of git://github.com/ab9rf/dfhack
Diffstat (limited to 'plugins/probe.cpp')
| -rw-r--r-- | plugins/probe.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/probe.cpp b/plugins/probe.cpp index e3aa945f..b3b28837 100644 --- a/plugins/probe.cpp +++ b/plugins/probe.cpp @@ -216,9 +216,18 @@ command_result df_probe (color_ostream &out, vector <string> & parameters) df::world_data::T_region_map* biome = &world->world_data->region_map[region_pos.x][region_pos.y]; + int sav = biome->savagery; + int evi = biome->evilness; + int sindex = sav > 65 ? 2 : sav < 33 ? 0 : 1; + int eindex = evi > 65 ? 2 : evi < 33 ? 0 : 1; + int surr = sindex + eindex * 3; + + char* surroundings[] = { "Serene", "Mirthful", "Joyous Wilds", "Calm", "Wilderness", "Untamed Wilds", "Sinister", "Haunted", "Terrifying" }; + // biome, geolayer out << "biome: " << des.bits.biome << " (" << "region id=" << biome->region_id << ", " << + surroundings[surr] << ", " << "savagery " << biome->savagery << ", " << "evilness " << biome->evilness << ")" << std::endl; out << "geolayer: " << des.bits.geolayer_index |
