summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-03 12:02:02 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-03 12:02:02 +0000
commitda7b14eeeda044dc523653b4c0b365e15495282e (patch)
tree2cec3f9fe140b3f6b129ec65eb22a2fcb4c72de1 /crawl-ref/source/fight.cc
parenteedaf28e2ab8dfae0eaae2fc308bdf683bf57021 (diff)
downloadcrawl-ref-da7b14eeeda044dc523653b4c0b365e15495282e.tar.gz
crawl-ref-da7b14eeeda044dc523653b4c0b365e15495282e.zip
Minor cleanups (especially of Xom code.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1728 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index f938562d72..a8ba7d74a3 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -1761,9 +1761,7 @@ bool melee_attack::chop_hydra_head( int dam,
if (dam_type == DVORP_CLAWING)
{
static const char *claw_verbs[] = { "rip", "tear", "claw" };
- verb =
- claw_verbs[
- random2( sizeof(claw_verbs) / sizeof(*claw_verbs) ) ];
+ verb = RANDOM_ELEMENT(claw_verbs);
}
else
{
@@ -1771,9 +1769,7 @@ bool melee_attack::chop_hydra_head( int dam,
{
"slice", "lop", "chop", "hack"
};
- verb =
- slice_verbs[
- random2( sizeof(slice_verbs) / sizeof(*slice_verbs) ) ];
+ verb = RANDOM_ELEMENT(slice_verbs);
}
if (def->number < 1)