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/traps.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/traps.cc')
-rw-r--r-- | crawl-ref/source/traps.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc index 159e552052..e047096c2b 100644 --- a/crawl-ref/source/traps.cc +++ b/crawl-ref/source/traps.cc @@ -950,7 +950,7 @@ void trap_def::trigger(actor& triggerer, bool flat_footed) // Depending on total (body + equipment) weight, give monsters // and player a chance to escape a shaft. - if (x_chance_in_y(200, triggerer.total_weight())) + if (x_chance_in_y(140, triggerer.body_weight())) break; // Fire away! |