summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/branch.h
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-08-25 16:27:20 -0500
committerJesse Luehrs <doy@tozt.net>2010-08-25 16:27:20 -0500
commit6c38fdbc4fef03a2c23361653c21937d18bffbed (patch)
tree88bae86f21039ee5b8db5a479718c8ddbebbbba3 /crawl-ref/source/branch.h
parent389ec75f11fd8f56d969605b79281bd79006fb8d (diff)
downloadcrawl-ref-6c38fdbc4fef03a2c23361653c21937d18bffbed.tar.gz
crawl-ref-6c38fdbc4fef03a2c23361653c21937d18bffbed.zip
add ambient noise levels to branches
noise loudness is increased or decreased by a branch-dependent amount to simulate having background noise. hive is very noisy and crypt is very quiet, and a couple other branches are in between... we might want to give values to a couple other ones, but couldn't really think of good ideas for that off the top of my head. i'm not sure how much this actually affects with our current noise system, but i think it's a reasonable concept to build on. this also gives a bonus/malus to stealth, the size of which is certainly up for tweaking (with the current numbers, hive is +40 and crypt is -40).
Diffstat (limited to 'crawl-ref/source/branch.h')
-rw-r--r--crawl-ref/source/branch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/branch.h b/crawl-ref/source/branch.h
index a620560ccf..0be1b09092 100644
--- a/crawl-ref/source/branch.h
+++ b/crawl-ref/source/branch.h
@@ -56,6 +56,7 @@ struct Branch
int travel_shortcut; // Which key to press for travel.
bool any_upstair_exits; // any upstair exits the branch (Hell branches)
bool dangerous_bottom_level; // bottom level is more dangerous than normal
+ int ambient_noise;
};
extern Branch branches[];
@@ -70,6 +71,9 @@ level_id current_level_parent();
branch_type str_to_branch(const std::string &branch,
branch_type err = NUM_BRANCHES);
+int branch_ambient_noise(branch_type branch);
+int current_level_ambient_noise();
+
const char *level_area_type_name(int level_type);
level_area_type str_to_level_area_type(const std::string &s);