diff options
author | gammafunk <gammafunk@gmail.com> | 2014-05-16 21:08:06 -0500 |
---|---|---|
committer | gammafunk <gammafunk@gmail.com> | 2014-05-26 22:44:47 -0500 |
commit | b364f15f4eeff0e148b6fc026c01de1327254cd2 (patch) | |
tree | c33df17f5496f4b58188486a35ee16029d77628d /crawl-ref/source/player-act.cc | |
parent | 1ea5aace817995441953ee3cb63f49f62a45ff88 (diff) | |
download | crawl-ref-b364f15f4eeff0e148b6fc026c01de1327254cd2.tar.gz crawl-ref-b364f15f4eeff0e148b6fc026c01de1327254cd2.zip |
Don't use inventory weight for the chance of activating a shaft trap
Shaft traps previously considered the actor's total inventory weight
in addition to body weight, but the player burden calculation code
isn't worth keeping for this consideration alone. The chance of a
shaft trap activating now depends only on the actor's body weight.
Diffstat (limited to 'crawl-ref/source/player-act.cc')
-rw-r--r-- | crawl-ref/source/player-act.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/crawl-ref/source/player-act.cc b/crawl-ref/source/player-act.cc index 34fe271e38..415f60e80d 100644 --- a/crawl-ref/source/player-act.cc +++ b/crawl-ref/source/player-act.cc @@ -216,11 +216,6 @@ int player::body_weight(bool base) const return weight; } -int player::total_weight() const -{ - return body_weight() + burden; -} - int player::damage_type(int) { if (const item_def* wp = weapon()) |