summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-15 23:20:44 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-15 23:20:44 +0000
commitc5f460f024c071a1c56980dc89ab15b2cf860f8c (patch)
tree0538c9d2a0b9c8dff1b95331f1e12b68f645f1fc /crawl-ref/source/beam.cc
parentb845b3611b4c5cb1798618320211e0532de969ae (diff)
downloadcrawl-ref-c5f460f024c071a1c56980dc89ab15b2cf860f8c.tar.gz
crawl-ref-c5f460f024c071a1c56980dc89ab15b2cf860f8c.zip
Add various beam explosion-related cleanups. Also, make cleansing flame
an explosion of BEAM_HOLY around the player instead of an aimable effect. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8467 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc41
1 files changed, 5 insertions, 36 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 82da7982c1..f2f15b61b8 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -735,23 +735,6 @@ const zap_info zap_data[] = {
false
},
-
- {
- ZAP_CLEANSING_FLAME,
- "golden flame",
- 200,
- new calcdice_calculator<2, 20, 2, 3>,
- new tohit_calculator<150>,
- YELLOW,
- false,
- BEAM_HOLY,
- DCHAR_FIRED_ZAP,
- true,
- true,
- true
- },
-
-
{
ZAP_BONE_SHARDS,
"spray of bone shards",
@@ -786,7 +769,6 @@ const zap_info zap_data[] = {
false
},
-
{
ZAP_DEGENERATION,
"0",
@@ -802,7 +784,6 @@ const zap_info zap_data[] = {
false
},
-
{
ZAP_STING,
"sting",
@@ -818,7 +799,6 @@ const zap_info zap_data[] = {
false
},
-
{
ZAP_HELLFIRE,
"hellfire",
@@ -1287,7 +1267,6 @@ const zap_info zap_data[] = {
}
};
-
static void _zappy(zap_type z_type, int power, bolt &pbolt)
{
const zap_info* zinfo = NULL;
@@ -3811,8 +3790,8 @@ void bolt::affect_player()
return;
const bool engulfs = (is_explosion || is_big_cloud);
- mprf( "The %s %s you!",
- name.c_str(), (engulfs) ? "engulfs" : "hits" );
+ mprf("The %s %s you!",
+ name.c_str(), engulfs ? "engulfs" : "hits");
// FIXME: Lots of duplicated code here (compare handling of
// monsters)
@@ -3866,14 +3845,14 @@ void bolt::affect_player()
if (!engulfs
&& (flavour == BEAM_MISSILE || flavour == BEAM_MMISSILE))
{
- int blood = hurted/2; // assumes DVORP_PIERCING, factor: 0.5
+ int blood = hurted / 2; // assumes DVORP_PIERCING, factor: 0.5
if (blood > you.hp)
blood = you.hp;
bleed_onto_floor(you.pos(), -1, blood, true);
}
- hurted = check_your_resists( hurted, flavour );
+ hurted = check_your_resists(hurted, flavour);
if (flavour == BEAM_MIASMA && hurted > 0)
{
@@ -4505,7 +4484,7 @@ void bolt::affect_monster(monsters* mon)
{
mprf("The %s %s %s.",
name.c_str(),
- engulfs? "engulfs" : "hits",
+ engulfs ? "engulfs" : "hits",
player_monster_visible(mon) ?
mon->name(DESC_NOCAP_THE).c_str() : "something");
@@ -5053,16 +5032,6 @@ void bolt::refine_for_explosion()
flavour = BEAM_HELLFIRE;
}
- if (name == "golden flame")
- {
- seeMsg = "The flame explodes!";
- hearMsg = "You feel a deep, resonant explosion.";
-
- type = dchar_glyph(DCHAR_FIRED_BURST);
- flavour = BEAM_HOLY;
- ex_size = 2;
- }
-
if (name == "fireball")
{
seeMsg = "The fireball explodes!";