summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-12 22:06:47 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-12 22:06:47 +0000
commitc8a0422eec7733d489ac79c2955aeb2685542536 (patch)
treed9e81647400d4c4c9a9224dfa3784289c8da04e7 /crawl-ref/source/items.cc
parent45b96dcd54a2e8f506aa829f168fa16bd16c53b4 (diff)
downloadcrawl-ref-c8a0422eec7733d489ac79c2955aeb2685542536.tar.gz
crawl-ref-c8a0422eec7733d489ac79c2955aeb2685542536.zip
Removed portable altars. Nemelex prayers will now sacrifice everything
on the current square. (This will need some interface improvements to prevent players from 'p'ing away their stash...) Also removed some unused enums and enum values. Breaks savefiles. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1470 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc52
1 files changed, 1 insertions, 51 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 46a52914dc..0e1df7ed03 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -1048,11 +1048,7 @@ bool origin_describable(const item_def &item)
&& (!is_stackable_item(item) || is_rune(item))
&& item.quantity == 1
&& item.base_type != OBJ_CORPSES
- && (item.base_type != OBJ_FOOD || item.sub_type != FOOD_CHUNK)
- // Portable altars cannot be tracked meaningfully with Crawl's
- // current handling for portable altars.
- && (item.base_type != OBJ_MISCELLANY ||
- item.sub_type != MISC_PORTABLE_ALTAR_OF_NEMELEX));
+ && (item.base_type != OBJ_FOOD || item.sub_type != FOOD_CHUNK));
}
std::string article_it(const item_def &item)
@@ -1187,7 +1183,6 @@ bool pickup_single_item(int link, int qty)
void pickup()
{
- int m = 0;
int keyin = 'x';
if (you.attribute[ATTR_TRANSFORMATION] == TRAN_AIR
@@ -1203,51 +1198,6 @@ void pickup()
return;
}
- // Fortunately, the player is prevented from testing their
- // portable altar in the Ecumenical Temple. -- bwr
- if (grd[you.x_pos][you.y_pos] == DNGN_ALTAR_NEMELEX_XOBEH
- && !player_in_branch( BRANCH_ECUMENICAL_TEMPLE ))
- {
- if (inv_count() >= ENDOFPACK)
- {
- mpr("There is a portable altar here, "
- "but you can't carry anything else.");
- return;
- }
-
- if (yesno("There is a portable altar here. Pick it up?"))
- {
- for (m = 0; m < ENDOFPACK; m++)
- {
- if (!is_valid_item( you.inv[m] ))
- {
- item_def& item = you.inv[m];
- item.base_type = OBJ_MISCELLANY;
- item.sub_type = MISC_PORTABLE_ALTAR_OF_NEMELEX;
- item.plus = 0;
- item.plus2 = 0;
- item.special = 0;
- item.colour = LIGHTMAGENTA;
- item.quantity = 1;
- item.inscription = you.last_altar_inscription;
- set_ident_flags( item, ISFLAG_IDENT_MASK );
-
- item.x = -1;
- item.y = -1;
- item.link = m;
-
- burden_change();
-
- mpr( item.name(DESC_INVENTORY_EQUIP).c_str() );
- break;
- }
- }
-
- grd[you.x_pos][you.y_pos] = DNGN_FLOOR;
- unnotice_altar();
- }
- }
-
int o = igrd[you.x_pos][you.y_pos];
const int num_nonsquelched = count_nonsquelched_items(o);