diff options
author | Neil Moore <neil@s-z.org> | 2014-05-24 03:16:39 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-05-24 03:16:39 -0400 |
commit | 64157391c3e09646fee0b14892aafe1e8fe10755 (patch) | |
tree | a74147277c7d27775b131d137d7f5326f7174232 /crawl-ref/source/player.cc | |
parent | ecfd64cfc761380a1ccc99642a265070b40b76f0 (diff) | |
download | crawl-ref-64157391c3e09646fee0b14892aafe1e8fe10755.tar.gz crawl-ref-64157391c3e09646fee0b14892aafe1e8fe10755.zip |
Avoid "you." in player:: methods.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index cc825058de..5c5b9a2d9d 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -7662,7 +7662,7 @@ bool player::can_see_invisible() const bool player::invisible() const { - return (duration[DUR_INVIS] || you.form == TRAN_SHADOW) + return (duration[DUR_INVIS] || form == TRAN_SHADOW) && !backlit(); } @@ -7717,7 +7717,7 @@ bool player::glows_naturally() const // This is the imperative version. void player::backlight() { - if (!duration[DUR_INVIS] && you.form != TRAN_SHADOW) + if (!duration[DUR_INVIS] && form != TRAN_SHADOW) { if (duration[DUR_CORONA] || glows_naturally()) mpr("You glow brighter."); @@ -7785,7 +7785,7 @@ bool player::can_bleed(bool allow_tran) const if (is_lifeless_undead() #if TAG_MAJOR_VERSION == 34 - || you.species == SP_DJINNI + || species == SP_DJINNI #endif || holiness() == MH_NONLIVING) { // demonspawn and demigods have a mere drop of taint @@ -7797,7 +7797,7 @@ bool player::can_bleed(bool allow_tran) const bool player::is_stationary() const { - return you.form == TRAN_TREE; + return form == TRAN_TREE; } bool player::malmutate(const string &reason) @@ -8036,7 +8036,7 @@ bool player::do_shaft() bool player::can_do_shaft_ability(bool quiet) const { - if (you.attribute[ATTR_HELD]) + if (attribute[ATTR_HELD]) { if (!quiet) mprf("You can't shaft yourself while %s.", held_status()); @@ -8350,7 +8350,7 @@ bool player::form_uses_xl() const // users of one particular [non-]weapon be effective for this // unintentional form while others can just run or die. I believe this // should apply to more forms, too. [1KB] - return you.form == TRAN_WISP || you.form == TRAN_FUNGUS; + return form == TRAN_WISP || form == TRAN_FUNGUS; } bool player::can_device_heal() |