summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tiledoll.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-12-04 20:42:38 +0100
committerAdam Borowski <kilobyte@angband.pl>2010-12-04 20:42:38 +0100
commit15e0500f4fe209aa0cb3ca8d33c53b8e2eaa60ab (patch)
treefc33cfe47cdb7398736cfbff4837c8aa388148f4 /crawl-ref/source/tiledoll.cc
parenta44c70fe6334fd12474f4ab1204fad9903c46093 (diff)
downloadcrawl-ref-15e0500f4fe209aa0cb3ca8d33c53b8e2eaa60ab.tar.gz
crawl-ref-15e0500f4fe209aa0cb3ca8d33c53b8e2eaa60ab.zip
Get rid of you.attribute[ATTR_TRANSFORMATION].
Galehar's your_name hack was a step in the right direction, but it was still not fully clean. There's no reason to use you.attribute[] -- it has a benefit of not requiring a minor tag (something that was even impossible in the past!), but has its flaws like verbosity, being hard to read and not allowing using proper types the compiler can use to give warnings.
Diffstat (limited to 'crawl-ref/source/tiledoll.cc')
-rw-r--r--crawl-ref/source/tiledoll.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tiledoll.cc b/crawl-ref/source/tiledoll.cc
index 7e5516db6f..b0ddcdc1bd 100644
--- a/crawl-ref/source/tiledoll.cc
+++ b/crawl-ref/source/tiledoll.cc
@@ -270,7 +270,7 @@ void fill_doll_equipment(dolls_data &result)
if (result.parts[TILEP_PART_HAND1] == TILEP_SHOW_EQUIP)
{
const int item = you.equip[EQ_WEAPON];
- if (you.attribute[ATTR_TRANSFORMATION] == TRAN_BLADE_HANDS)
+ if (you.form == TRAN_BLADE_HANDS)
result.parts[TILEP_PART_HAND1] = TILEP_HAND1_BLADEHAND;
else if (item == -1)
result.parts[TILEP_PART_HAND1] = 0;
@@ -281,7 +281,7 @@ void fill_doll_equipment(dolls_data &result)
if (result.parts[TILEP_PART_HAND2] == TILEP_SHOW_EQUIP)
{
const int item = you.equip[EQ_SHIELD];
- if (you.attribute[ATTR_TRANSFORMATION] == TRAN_BLADE_HANDS)
+ if (you.form == TRAN_BLADE_HANDS)
result.parts[TILEP_PART_HAND2] = TILEP_HAND2_BLADEHAND;
else if (item == -1)
result.parts[TILEP_PART_HAND2] = 0;