summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/branch.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-04 13:01:06 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-04 13:01:06 +0000
commit9f14dc6980b319b84fddd26d1338c21726356c6f (patch)
treef792f291661c61e38231b83038c3295c9a60ecc1 /crawl-ref/source/branch.cc
parent62b3f417aefd964a85edbb0848c02f73ab19d403 (diff)
downloadcrawl-ref-9f14dc6980b319b84fddd26d1338c21726356c6f.tar.gz
crawl-ref-9f14dc6980b319b84fddd26d1338c21726356c6f.zip
Added Flight card to Deck of Emergency.
Artefacts yield 2 piety instead of 1. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4070 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/branch.cc')
-rw-r--r--crawl-ref/source/branch.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/branch.cc b/crawl-ref/source/branch.cc
index 1cfa5fe251..728ce416ff 100644
--- a/crawl-ref/source/branch.cc
+++ b/crawl-ref/source/branch.cc
@@ -10,6 +10,7 @@
#include "cloud.h"
#include "externs.h"
#include "mon-pick.h"
+#include "place.h"
#include "player.h"
#include "spells3.h"
#include "traps.h"
@@ -19,6 +20,11 @@ Branch& your_branch()
return branches[you.where_are_you];
}
+bool at_branch_bottom()
+{
+ return your_branch().depth == player_branch_depth();
+}
+
branch_type str_to_branch(const std::string &branch, branch_type err)
{
for (int i = 0; i < NUM_BRANCHES; ++i)