diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-27 00:00:16 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-27 00:00:16 +0000 |
commit | 142db52cf0a402353b1fa4cb8da1a8035964f63d (patch) | |
tree | 67b4f22866981cff235841ee4449c06487d38efc /crawl-ref/source/transfor.cc | |
parent | 517f9b7f33af4d09905fae2ab1e295ae066f3859 (diff) | |
download | crawl-ref-142db52cf0a402353b1fa4cb8da1a8035964f63d.tar.gz crawl-ref-142db52cf0a402353b1fa4cb8da1a8035964f63d.zip |
Remove all traces of TRAN_AIR and TRAN_SERPENT_OF_HELL, the latter
together with the corresponding unused ability.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9244 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/transfor.cc')
-rw-r--r-- | crawl-ref/source/transfor.cc | 58 |
1 files changed, 2 insertions, 56 deletions
diff --git a/crawl-ref/source/transfor.cc b/crawl-ref/source/transfor.cc index 3d20c0a8b7..c6fbfd6231 100644 --- a/crawl-ref/source/transfor.cc +++ b/crawl-ref/source/transfor.cc @@ -75,8 +75,6 @@ bool transform_allows_wearing_item(const item_def& item, // Some can't wear anything. case TRAN_DRAGON: - case TRAN_SERPENT_OF_HELL: - case TRAN_AIR: // How did you carry it? case TRAN_BAT: rc = false; break; @@ -280,7 +278,6 @@ static bool _tran_may_meld_cursed(int transformation) return (true); // intentional fall-through case TRAN_SPIDER: - case TRAN_AIR: return (false); default: return (true); @@ -436,10 +433,7 @@ size_type player::transform_size(int psize) const case TRAN_ICE_BEAST: return SIZE_LARGE; case TRAN_DRAGON: - case TRAN_SERPENT_OF_HELL: return SIZE_HUGE; - case TRAN_AIR: - return SIZE_MEDIUM; default: return SIZE_CHARACTER; } @@ -459,9 +453,7 @@ static void _transformation_expiration_warning() bool transform(int pow, transformation_type which_trans, bool quiet) { if (you.species == SP_MERFOLK && player_is_swimming() - && which_trans != TRAN_DRAGON - && which_trans != TRAN_AIR - && which_trans != TRAN_BAT) + && which_trans != TRAN_DRAGON && which_trans != TRAN_BAT) { // This might be overkill, but it's okay because obviously // whatever magical ability that lets them walk on land is @@ -594,25 +586,6 @@ bool transform(int pow, transformation_type which_trans, bool quiet) msg = "Your body is suffused with negative energy!"; break; - case TRAN_SERPENT_OF_HELL: - tran_name = "Serpent of Hell"; - str = 13; - xhp = 17; - symbol = 'S'; - colour = RED; - dur = std::min(20 + random2(pow) + random2(pow), 120); - msg = "You transform into a huge demonic serpent!"; - break; - - case TRAN_AIR: - tran_name = "air"; - dex = 8; - symbol = '#'; - colour = DARKGREY; - dur = std::min(35 + random2(pow) + random2(pow), 150); - msg = "You feel diffuse..."; - break; - case TRAN_BAT: tran_name = "bat"; str = -5; @@ -718,19 +691,6 @@ bool transform(int pow, transformation_type which_trans, bool quiet) set_redraw_status(REDRAW_HUNGER); break; - case TRAN_AIR: - _drop_everything(); - - if (you.attribute[ATTR_HELD]) - { - mpr("You drift through the net!"); - you.attribute[ATTR_HELD] = 0; - int net = get_trapping_net(you.pos()); - if (net != NON_ITEM) - remove_item_stationary(mitm[net]); - } - break; - default: break; } @@ -743,8 +703,7 @@ bool transform(int pow, transformation_type which_trans, bool quiet) bool transform_can_butcher_barehanded(transformation_type tt) { - return (tt == TRAN_BLADE_HANDS || tt == TRAN_DRAGON - || tt == TRAN_SERPENT_OF_HELL); + return (tt == TRAN_BLADE_HANDS || tt == TRAN_DRAGON); } void untransform(void) @@ -836,19 +795,6 @@ void untransform(void) you.is_undead = US_ALIVE; break; - case TRAN_AIR: - mpr( "Your body solidifies.", MSGCH_DURATION ); - modify_stat(STAT_DEXTERITY, -8, true, - "losing the air transformation"); - break; - - case TRAN_SERPENT_OF_HELL: - mpr( "Your transformation has ended.", MSGCH_DURATION ); - modify_stat(STAT_STRENGTH, -13, true, - "losing the Serpent of Hell transformation"); - hp_downscale = 17; - break; - default: break; } |