summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-08-08 02:43:25 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-08-08 15:00:26 -0400
commit5fa8f0601da1c17ead9d03eb33df964a0d74579e (patch)
tree7ba4d487e0a3d4d500e687344b0dcbb77c5dfefc
parent315c8739f4ed43766b0b8391963a2428171ede9c (diff)
downloadcrawl-ref-5fa8f0601da1c17ead9d03eb33df964a0d74579e.tar.gz
crawl-ref-5fa8f0601da1c17ead9d03eb33df964a0d74579e.zip
Better variable names in _xom_snakes_to_sticks
-rw-r--r--crawl-ref/source/xom.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index b71993f595..872b45eb81 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -1637,24 +1637,24 @@ static int _xom_snakes_to_sticks(int sever, bool debug = false)
(x_chance_in_y(3,5) ? MI_ARROW : MI_JAVELIN)
: _xom_random_stickable(mi->get_experience_level()));
- int thing_created = items(false, base_type, sub_type, true,
+ int item_slot = items(false, base_type, sub_type, true,
mi->get_experience_level() / 3 - 1,
0, 0, -1);
- if (thing_created == NON_ITEM)
+ if (item_slot == NON_ITEM)
continue;
- item_def &doodad(mitm[thing_created]);
+ item_def &item(mitm[item_slot]);
// Always limit the quantity to 1.
- doodad.quantity = 1;
+ item.quantity = 1;
// Output some text since otherwise snakes will disappear silently.
mprf("%s reforms as %s.", mi->name(DESC_THE).c_str(),
- doodad.name(DESC_A).c_str());
+ item.name(DESC_A).c_str());
// Dismiss monster silently.
- move_item_to_grid(&thing_created, mi->pos());
+ move_item_to_grid(&item_slot, mi->pos());
monster_die(*mi, KILL_DISMISSED, NON_MONSTER, true, false);
}
}