git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2359 c06c8d41-db1a-0410-9941-cceddc491573
KXHG3CHEUCZX6UZXAQG6QXPS6IRTIJWGGZWYVAMHWYYTCM4KBUSQC
PH47ROWCEIJEYKD2QANVOVWXRA6PQIU7FHBK2CU6XZDRIOVNFEPQC
KHHAE5ZK7ITEZVMMUKYROKECLE2RU5ZU5OQ4Z4XSRQXE2R65O67AC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
if ( you.inv[unw].base_type == OBJ_MISCELLANY && you.inv[unw].sub_type == MISC_LANTERN_OF_SHADOWS )
if ( you.inv[unw].base_type == OBJ_MISCELLANY &&
you.inv[unw].sub_type == MISC_LANTERN_OF_SHADOWS )
item_def &item(you.inv[unw]); if ( item.base_type == OBJ_MISCELLANY && item.sub_type == MISC_LANTERN_OF_SHADOWS )
item_def &item(you.inv[unw]);
if ( item.base_type == OBJ_MISCELLANY &&
item.sub_type == MISC_LANTERN_OF_SHADOWS )
if (you.inv[unw].base_type == OBJ_WEAPONS)
if (item.base_type == OBJ_WEAPONS)
if (is_fixed_artefact( you.inv[unw] ))
if (is_fixed_artefact( item ))
switch (you.inv[unw].special)
switch (item.special)
you.inv[unw].plus = 0; you.inv[unw].plus2 = 0;
you.inv[unw].plus = 0;
you.inv[unw].plus2 = 0;
item.plus = 0; item.plus2 = 0;
item.plus = 0;
item.plus2 = 0;
const int brand = get_weapon_brand( you.inv[unw] );
const int brand = get_weapon_brand( item );
if (is_random_artefact( you.inv[unw] ))
if (is_random_artefact( item ))
const std::string msg = you.inv[unw].name(DESC_CAP_YOUR);
const std::string msg = item.name(DESC_CAP_YOUR);
set_item_ego_type( you.inv[unw], OBJ_WEAPONS, SPWPN_NORMAL );
set_item_ego_type( item, OBJ_WEAPONS, SPWPN_NORMAL );
if (player_equip( EQ_STAFF, STAFF_POWER ))
if (item.base_type == OBJ_STAVES && item.sub_type == STAFF_POWER)