From 33f39e1feb49c5f7ef0fc748e16195849627faf9 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 1 Jun 2008 21:38:06 +0000 Subject: * Fix some issues with the new food colourings, and make it respect Vampires' drinking habits. * Allow other channels than MSGCH_TUTORIAL to use formatted strings and use it to send a coloured string through the butcher prompt, thus visibly setting off dangerous corpses. I'd like normal corpses (no patterns in food_colouring.txt matching) not to be highlighted at all, but they're currently shown in lightgrey, that will have to be improved. * Fix Vampire mutation screen displaying poison resistance wrongly. * Add a new option force_more_message whose syntax is copied from travel_stop_message. Any message containing a regex within this listing will enforce a -More- prompt. By default, it's only enabled for "You start to lose your buoyoncy." * Tweak the messages for Kenku flying to fix 1823833. * Make Xom be amused at players teleporting in a labyrinth or when becoming (Near) Starving while in a labyrinth and with little food at their disposal. Yes, it's one of those "Something for everyone" commits. :D git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5416 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 84feba599b..cbf12e67ec 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -1463,13 +1463,13 @@ int player_res_torment(bool) || you.species == SP_VAMPIRE && you.hunger_state == HS_STARVING); } -// funny that no races are susceptible to poisons {dlb} +// Funny that no races are susceptible to poisons. {dlb} // If temp is set to false, temporary sources or resistance won't be counted. int player_res_poison(bool calc_unid, bool temp) { int rp = 0; - // only thirsty vampires are naturally poison resistant + // Only thirsty vampires are naturally poison resistant. if (you.species == SP_VAMPIRE && you.hunger_state < HS_SATIATED) rp++; @@ -6247,9 +6247,11 @@ flight_type player::flight_mode() const return FL_FLY; } else if (is_levitating()) + { return (you.duration[DUR_CONTROLLED_FLIGHT] - || wearing_amulet(AMU_CONTROLLED_FLIGHT) - ? FL_FLY : FL_LEVITATE); + || wearing_amulet(AMU_CONTROLLED_FLIGHT) ? FL_FLY + : FL_LEVITATE); + } else return (FL_NONE); } -- cgit v1.2.3-54-g00ecf