diff options
| author | Kelly Martin | 2012-04-22 10:17:14 -0500 |
|---|---|---|
| committer | Kelly Martin | 2012-04-22 10:17:14 -0500 |
| commit | 26cec5f60c120b7ea4ce4592ef926bd11f2c2cc4 (patch) | |
| tree | 9d5c2223bd6db88142d33b1a4fcd5339ee8d853f /plugins/probe.cpp | |
| parent | f5644f385bb5bf101444729cbaa6cd64ae343007 (diff) | |
| download | dfhack-26cec5f60c120b7ea4ce4592ef926bd11f2c2cc4.tar.gz dfhack-26cec5f60c120b7ea4ce4592ef926bd11f2c2cc4.tar.bz2 dfhack-26cec5f60c120b7ea4ce4592ef926bd11f2c2cc4.tar.xz | |
Probe now displays the "surroundings" name for the biome (e.g. Joyous Wilds, or Terrifying).
Rprobe can be used from the embark screen to set the evilness of the selected biome; use with due care.
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 058a9e5c..06b1f968 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 |
