summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/transfor.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-21 17:12:52 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-21 17:14:36 +0100
commitb2915ea664489947c9702dfa11e40e9d28d22d2e (patch)
tree612be83b4f8759f91984aba55f3b36622f650bc6 /crawl-ref/source/transfor.cc
parentaaa3bc24212d0a47490b17537561e88d65c1f332 (diff)
downloadcrawl-ref-b2915ea664489947c9702dfa11e40e9d28d22d2e.tar.gz
crawl-ref-b2915ea664489947c9702dfa11e40e9d28d22d2e.zip
Update burden on transformation.
Regardless of changing strength, transformations can affect carrying capacity, hence require a call to burden_change. There may be issues with message order or when both shape and strength are modified.
Diffstat (limited to 'crawl-ref/source/transfor.cc')
-rw-r--r--crawl-ref/source/transfor.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/transfor.cc b/crawl-ref/source/transfor.cc
index f0f6380b43..39f932a5eb 100644
--- a/crawl-ref/source/transfor.cc
+++ b/crawl-ref/source/transfor.cc
@@ -757,6 +757,8 @@ bool transform(int pow, transformation_type which_trans, bool force,
you.symbol = symbol;
you.colour = colour;
+ burden_change();
+
if (str)
{
modify_stat(STAT_STRENGTH, str, true,
@@ -855,6 +857,8 @@ void untransform(bool skip_wielding)
you.attribute[ATTR_TRANSFORMATION] = TRAN_NONE;
you.duration[DUR_TRANSFORMATION] = 0;
+ burden_change();
+
int hp_downscale = 10;
switch (old_form)