From 8a2d405ada0648369b43a954fbaf2333186cae4b Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 18 Dec 2008 14:13:15 +0000 Subject: Fix royal jelly death in the Abyss destroying you.your_level. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7861 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/externs.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/externs.h') diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index 7cdaad0d20..609377e42b 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -503,8 +503,17 @@ public: level_type = LEVEL_DUNGEON; } + // Returns the absolute depth in the dungeon for the level_id; + // non-dungeon branches (specifically Abyss and Pan) will return + // depths suitable for use in monster and item generation. If + // you're looking for a depth to set you.your_level to, use + // dungeon_absdepth(). int absdepth() const; + // Returns the absolute depth in the dungeon for the level_id, corresponding + // to you.your_level. + int dungeon_absdepth() const; + bool is_valid() const { return (branch != NUM_BRANCHES && depth != -1) @@ -990,7 +999,7 @@ public: god_type deity() const; bool alive() const; bool is_summoned(int* duration = NULL, int* summon_type = NULL) const; - + bool swimming() const; bool submerged() const; bool floundering() const; -- cgit v1.2.3-54-g00ecf