summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2009-12-29 08:26:24 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2009-12-29 08:26:24 +0530
commit22c9c1dd3fe93c8ccab01eec647fb002877018f8 (patch)
tree61647db7597a0c8b9055bfdba86ee1ffcaa5fb10 /crawl-ref/source/player.cc
parentda206768a436941bf7acfc67f005a518fb90ca7e (diff)
downloadcrawl-ref-22c9c1dd3fe93c8ccab01eec647fb002877018f8.tar.gz
crawl-ref-22c9c1dd3fe93c8ccab01eec647fb002877018f8.zip
Merfolk (water/ice) elementalists join the Shoals guard.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 7ba87a20ff..8ebf0a0655 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -6452,6 +6452,12 @@ int player::res_elec() const
return (player_res_electricity() * 2);
}
+int player::res_water_drowning() const
+{
+ return (res_asphyx() ||
+ (you.species == SP_MERFOLK && !transform_changed_physiology()));
+}
+
int player::res_asphyx() const
{
// The undead are immune to asphyxiation, or so we'll assume.
@@ -7049,6 +7055,13 @@ bool player::move_to_pos(const coord_def &c)
return false;
}
+void player::apply_location_effects(const coord_def &oldpos,
+ killer_type killer,
+ int killernum)
+{
+ move_player_to_grid(pos(), false, true, true, false);
+}
+
void player::shiftto(const coord_def &c)
{
crawl_view.shift_player_to(c);