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5UHKUJ463NQC
5P6MEKBISK6NI4MULM75HHFBQW5MXITSZJDGLLIDKJ7G24F7XYNAC
4D4U3FNTYBIIM7Q67O4ISUTYBMT5DP746B7VKLXXJDWPTARPAKDQC
E3X5HVN5UN75OMTJA6JFQBNZ54P37NDZLZZF7EFBZZC45KR73YGAC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
VIHJ3Z75JN7BXWNOPWV3CWQZEA7K5DK36EKHCYMZC7SOSJYH2XHQC
UET576SVCGS2TXEDRTO7BUTOTLJ77MYHIVZJCDWGH2BAXYMKG6DAC
HHTFZV7UCVSE332T2FMAS2UHWSP6OZ2PSLEJ7D47QTSBTFTUFTNAC
2FHNLTLN3DVVD67N4QMAQ2LO7YY4GVZWXJAOIWGCCYYGIX7UHSVQC
CQKH4FU2BZOMP5VWWOH2CEWDAYOV7FV53VOFQRF7R64DCQMP73LAC
G7ZXJ4RUQB3U5NL2DEWXMTHRRDT7WTONWKTPOOGWFCE46ZWUVLOQC
7U7IZUR2C7UALYI4Y3SHBYGTHYVQM6JI4PXDFXUFL3T3L6JBSC6AC
KEANRIMF5CGFVZ2XJYNFPOAKLXOSOJUOVA73IWBWOG576265ERHAC
// Elyvilon doesn't care about item sacrifices at altars, so
// I'm stealing _Sacrifice_Messages.
_print_sacrifice_message(GOD_ELYVILON, item, pgain);
if (is_evil_weapon)
if (get_weapon_brand(item) == SPWPN_HOLY_WRATH)
// Print this is addition to the above!
simple_god_message(" welcomes the destruction of this evil weapon.",
GOD_ELYVILON);
// Weapons blessed by TSO don't get destroyed but are instead
// returned whence they came. (jpeg)
// _print_sacrifice_message(GOD_SHINING_ONE, item, pgain);
simple_god_message(
make_stringf(" %sreclaims %s.",
pgain == PIETY_SOME ? "gladly " : "",
item.name(DESC_NOCAP_THE).c_str()).c_str(),
GOD_SHINING_ONE);
else
{
// Elyvilon doesn't care about item sacrifices at altars, so
// I'm stealing _Sacrifice_Messages.
_print_sacrifice_message(GOD_ELYVILON, item, pgain);
if (is_evil_weapon)
{
// Print this is addition to the above!
simple_god_message(" welcomes the destruction of this evil "
"weapon.", GOD_ELYVILON);
}
}
bool wield_weapon(bool auto_wield, int slot, bool show_weff_messages)
// If force is true, don't check weapon inscriptions.
// (Assuming the player was already prompted for that.)
bool wield_weapon(bool auto_wield, int slot, bool show_weff_messages,
bool force)
// checks if current item (to be removed) has a warning inscription
// and prompts the user for confirmation
static bool _check_old_item_warning( const item_def& item,
operation_types oper )
// Checks if current item (to be removed) has a warning inscription
// and prompts the user for confirmation.
bool check_old_item_warning( const item_def& item,
operation_types oper )