summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/attack.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-06-10 09:31:59 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-06-10 09:36:48 -0400
commitffd391d7850bbbc282688706f5714a885f07b182 (patch)
tree9ef1f9d7ee4e051216b42ee4dd5a782ea38e6209 /crawl-ref/source/attack.cc
parent897c189157c822dcb87e64f4a38373bdd258e554 (diff)
downloadcrawl-ref-ffd391d7850bbbc282688706f5714a885f07b182.tar.gz
crawl-ref-ffd391d7850bbbc282688706f5714a885f07b182.zip
Combine the frost/flame and freezing/flaming brands.
Elec and venom launchers already use the same brands, and with ranged code more similar to melee code this change actually simplifies most code. There should be no gameplay change though some weird brand picking code for launchers was refactored, which might have some effect.
Diffstat (limited to 'crawl-ref/source/attack.cc')
-rw-r--r--crawl-ref/source/attack.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/crawl-ref/source/attack.cc b/crawl-ref/source/attack.cc
index d2d43fb351..7d2622f2de 100644
--- a/crawl-ref/source/attack.cc
+++ b/crawl-ref/source/attack.cc
@@ -983,9 +983,6 @@ brand_type attack::random_chaos_brand()
case SPWPN_VAMPIRICISM: brand_name += "vampiricism"; break;
case SPWPN_VORPAL: brand_name += "vorpal"; break;
case SPWPN_ANTIMAGIC: brand_name += "antimagic"; break;
- // ranged weapon brands
- case SPWPN_FLAME: brand_name += "flame"; break;
- case SPWPN_FROST: brand_name += "frost"; break;
// both ranged and non-ranged
case SPWPN_CHAOS: brand_name += "chaos"; break;
@@ -1641,7 +1638,6 @@ bool attack::apply_damage_brand(const char *what)
brand = damage_brand == SPWPN_CHAOS ? random_chaos_brand() : damage_brand;
if (brand != SPWPN_FLAMING && brand != SPWPN_FREEZING
- && brand != SPWPN_FLAME && brand != SPWPN_FROST
&& brand != SPWPN_ELECTROCUTION && brand != SPWPN_VAMPIRICISM
&& !defender->alive())
{
@@ -1652,7 +1648,6 @@ bool attack::apply_damage_brand(const char *what)
if (!damage_done
&& (brand == SPWPN_FLAMING || brand == SPWPN_FREEZING
- || brand == SPWPN_FLAME || brand == SPWPN_FROST
|| brand == SPWPN_HOLY_WRATH || brand == SPWPN_DRAGON_SLAYING
|| brand == SPWPN_VORPAL || brand == SPWPN_VAMPIRICISM
|| brand == SPWPN_ANTIMAGIC))
@@ -1664,7 +1659,6 @@ bool attack::apply_damage_brand(const char *what)
switch (brand)
{
case SPWPN_FLAMING:
- case SPWPN_FLAME:
calc_elemental_brand_damage(BEAM_FIRE, defender->res_fire(),
defender->is_icy() ? "melt" : "burn",
what);
@@ -1673,7 +1667,6 @@ bool attack::apply_damage_brand(const char *what)
break;
case SPWPN_FREEZING:
- case SPWPN_FROST:
calc_elemental_brand_damage(BEAM_COLD, defender->res_cold(), "freeze",
what);
defender->expose_to_element(BEAM_COLD, 2);