diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-15 10:41:58 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-15 11:01:57 -0600 |
commit | e5b09096c90a9c99a7dba3d1597560a0a6bee8ed (patch) | |
tree | 8da238680884ff80aa8061e5bb838d08a88024b7 /crawl-ref/source | |
parent | 9886581926e161201c8072b5fec05bc9840157b1 (diff) | |
download | crawl-ref-e5b09096c90a9c99a7dba3d1597560a0a6bee8ed.tar.gz crawl-ref-e5b09096c90a9c99a7dba3d1597560a0a6bee8ed.zip |
Rename cast_brand_ammo() to brand_ammo(), for consistency.
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/spells3.cc | 21 | ||||
-rw-r--r-- | crawl-ref/source/spells3.h | 2 | ||||
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 16 |
3 files changed, 19 insertions, 20 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index f2908da88a..50ae3e5f8f 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -1979,13 +1979,13 @@ bool cast_sanctuary(const int power) return (true); } -void cast_brand_ammo(special_missile_type which_type) +void brand_ammo(special_missile_type which_type) { const int ammo = you.equip[EQ_WEAPON]; if (ammo == -1 || you.inv[ammo].base_type != OBJ_MISSILES - || get_ammo_brand( you.inv[ammo] ) != SPMSL_NORMAL + || get_ammo_brand(you.inv[ammo]) != SPMSL_NORMAL || you.inv[ammo].sub_type == MI_THROWING_NET) { canned_msg(MSG_NOTHING_HAPPENS); @@ -1997,9 +1997,8 @@ void cast_brand_ammo(special_missile_type which_type) switch (which_type) { - case SPMSL_POISONED: - if (set_item_ego_type( you.inv[ammo], OBJ_MISSILES, SPMSL_POISONED )) + if (set_item_ego_type(you.inv[ammo], OBJ_MISSILES, SPMSL_POISONED)) { mprf("%s %s covered in a thin film of poison.", old_desc, (you.inv[ammo].quantity == 1) ? "is" : "are"); @@ -2012,7 +2011,7 @@ void cast_brand_ammo(special_missile_type which_type) break; case SPMSL_FLAME: - if (set_item_ego_type( you.inv[ammo], OBJ_MISSILES, SPMSL_FLAME )) + if (set_item_ego_type(you.inv[ammo], OBJ_MISSILES, SPMSL_FLAME)) { mprf("%s %s warm to the touch.", old_desc, (you.inv[ammo].quantity == 1) ? "feels" : "feel"); @@ -2025,7 +2024,7 @@ void cast_brand_ammo(special_missile_type which_type) break; case SPMSL_FROST: - if (set_item_ego_type( you.inv[ammo], OBJ_MISSILES, SPMSL_FROST )) + if (set_item_ego_type(you.inv[ammo], OBJ_MISSILES, SPMSL_FROST)) { mprf("%s %s cool to the touch.", old_desc, (you.inv[ammo].quantity == 1) ? "feels" : "feel"); @@ -2038,7 +2037,7 @@ void cast_brand_ammo(special_missile_type which_type) break; case SPMSL_DISPERSAL: - if (set_item_ego_type( you.inv[ammo], OBJ_MISSILES, SPMSL_DISPERSAL )) + if (set_item_ego_type(you.inv[ammo], OBJ_MISSILES, SPMSL_DISPERSAL)) { mprf("%s %s rather jumpy.", old_desc, (you.inv[ammo].quantity == 1) ? "seems" : "seem"); @@ -2051,7 +2050,7 @@ void cast_brand_ammo(special_missile_type which_type) break; case SPMSL_ELECTRIC: - if (set_item_ego_type( you.inv[ammo], OBJ_MISSILES, SPMSL_ELECTRIC )) + if (set_item_ego_type(you.inv[ammo], OBJ_MISSILES, SPMSL_ELECTRIC)) { mprf("%s %s you!", old_desc, (you.inv[ammo].quantity == 1) ? "shocks" : "shock"); @@ -2064,7 +2063,7 @@ void cast_brand_ammo(special_missile_type which_type) break; case SPMSL_EXPLODING: - if (set_item_ego_type( you.inv[ammo], OBJ_MISSILES, SPMSL_EXPLODING )) + if (set_item_ego_type(you.inv[ammo], OBJ_MISSILES, SPMSL_EXPLODING)) { mprf("%s %s unstable!", old_desc, (you.inv[ammo].quantity == 1) ? "seems" : "seem"); @@ -2077,7 +2076,7 @@ void cast_brand_ammo(special_missile_type which_type) break; case SPMSL_REAPING: - if (set_item_ego_type( you.inv[ammo], OBJ_MISSILES, SPMSL_REAPING )) + if (set_item_ego_type(you.inv[ammo], OBJ_MISSILES, SPMSL_REAPING)) { mprf("%s %s of rotten flesh!", old_desc, (you.inv[ammo].quantity == 1) ? "smells" : "smell"); @@ -2090,7 +2089,7 @@ void cast_brand_ammo(special_missile_type which_type) break; case SPMSL_RETURNING: - if (set_item_ego_type( you.inv[ammo], OBJ_MISSILES, SPMSL_RETURNING )) + if (set_item_ego_type(you.inv[ammo], OBJ_MISSILES, SPMSL_RETURNING)) { mprf("%s %s in your hand.", old_desc, (you.inv[ammo].quantity == 1) ? "wiggles" : "wiggle"); diff --git a/crawl-ref/source/spells3.h b/crawl-ref/source/spells3.h index e70b3957c0..770c38090d 100644 --- a/crawl-ref/source/spells3.h +++ b/crawl-ref/source/spells3.h @@ -17,7 +17,7 @@ bool allow_control_teleport(bool quiet = false); int airstrike(int power, dist &beam); bool cast_bone_shards(int power, bolt &); -void cast_brand_ammo(special_missile_type which_brand); +void brand_ammo(special_missile_type which_brand); bool cast_selective_amnesia(bool force); bool cast_smiting(int power, const coord_def& where); bool remove_sanctuary(bool did_attack = false); diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 74b84bf7f1..728e7c5d9d 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -1917,35 +1917,35 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail) break; case SPELL_POISON_AMMUNITION: - cast_brand_ammo(SPMSL_POISONED); + brand_ammo(SPMSL_POISONED); break; case SPELL_FLAME_AMMUNITION: - cast_brand_ammo(SPMSL_FLAME); + brand_ammo(SPMSL_FLAME); break; case SPELL_FROST_AMMUNITION: - cast_brand_ammo(SPMSL_FROST); + brand_ammo(SPMSL_FROST); break; case SPELL_WARP_AMMUNITION: - cast_brand_ammo(SPMSL_DISPERSAL); + brand_ammo(SPMSL_DISPERSAL); break; case SPELL_SHOCKING_AMMUNITION: - cast_brand_ammo(SPMSL_ELECTRIC); + brand_ammo(SPMSL_ELECTRIC); break; case SPELL_EXPLODING_AMMUNITION: - cast_brand_ammo(SPMSL_EXPLODING); + brand_ammo(SPMSL_EXPLODING); break; case SPELL_REAPING_AMMUNITION: - cast_brand_ammo(SPMSL_REAPING); + brand_ammo(SPMSL_REAPING); break; case SPELL_RETURNING_AMMUNITION: - cast_brand_ammo(SPMSL_RETURNING); + brand_ammo(SPMSL_RETURNING); break; // Transformations. |