summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-05-09 20:31:54 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-05-09 20:36:48 +0100
commitb5208daa1a15b563a0b96c09b329c81b3e42a5d6 (patch)
treec4867e724815d3d25570ff651db5f315edd423d6 /crawl-ref/source/output.cc
parentef772131353c523916671263ff54f6811720202a (diff)
downloadcrawl-ref-b5208daa1a15b563a0b96c09b329c81b3e42a5d6.tar.gz
crawl-ref-b5208daa1a15b563a0b96c09b329c81b3e42a5d6.zip
Display gourmand instead of saprovore on the % screen
Since gourmand is likely to actually change over the course of a game. Saprovore is still displayed for species that have it, when they have no gourmand (but probably doesn't need to be).
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index bd787ff332..b5d4fd4aac 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -2269,15 +2269,14 @@ static vector<formatted_string> _get_overview_resistances(
|| player_mutation_level(MUT_MUTATION_RESISTANCE) == 3);
out += _resist_composer("rMut", cwidth, rmuta) + "\n";
+
+ const int gourmand = you.gourmand(calc_unid);
const int saplevel = player_mutation_level(MUT_SAPROVOROUS);
- const bool show_gourm = (you.species != SP_MUMMY
- && you.species != SP_VAMPIRE
- && player_mutation_level(MUT_HERBIVOROUS) < 3
- && you.gourmand());
- out += _resist_composer(show_gourm ? "Gourm" : "Saprov",
+ const bool show_saprov = saplevel && !gourmand;
+ out += _resist_composer(show_saprov ? "Saprov" : "Gourm",
cwidth,
- show_gourm ? 1 : saplevel,
- show_gourm ? 1 : 3) + "\n";
+ show_saprov ? saplevel : gourmand,
+ show_saprov ? 3 : 1) + "\n";
const int rmagi = player_res_magic(calc_unid) / 40;
out += _resist_composer("MR", cwidth, rmagi, 5) + "\n";