git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6938 c06c8d41-db1a-0410-9941-cceddc491573
V4ZGIBXZEV32KO5KFHTVHZP4WMQTNHIXFKWWKJGQTQUPHSGNXPSAC
S34LKQDIQJLIWVIPASOJBBZ6ZCXDHP5KPS7TRBZJSCDRVNCLK6UAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
XRZPPYWPWUOM4SFNI6BHKH2UKJQNLKOV6Y7XIEPEZXE5QYRT26PAC
CIPVRZGLOZHCERK6YPOBV3P2E4IAB4H6D5EHLRQE2O5E4P4VCBUAC
4JNV6RTRY2UR3PZFMCNPRGCBSUAB7QTXYJCSYBIUAFMCCYVGN6PQC
if (you.inv[wpn].base_type != OBJ_WEAPONS
|| is_range_weapon(you.inv[wpn]))
{
// Can't brand already-branded items.
if (!temp_brand && get_weapon_brand(weapon) != SPWPN_NORMAL)
if (is_fixed_artefact( you.inv[wpn] )
|| is_random_artefact( you.inv[wpn] )
|| get_weapon_brand( you.inv[wpn] ) != SPWPN_NORMAL )
{
// Can't rebrand a temporarily-branded item to a different brand.
if (temp_brand && (get_weapon_brand(weapon) != which_brand))
}
std::string msg = you.inv[wpn].name(DESC_CAP_YOUR);
const int wpn_type = get_vorpal_type(you.inv[wpn]);
std::string msg = weapon.name(DESC_CAP_YOUR);
const int wpn_type = get_vorpal_type(weapon);
temp_rand = random2(6);
msg += ((temp_rand == 0) ? "twist" :
(temp_rand == 1) ? "bend" :
(temp_rand == 2) ? "vibrate" :
(temp_rand == 3) ? "flex" :
(temp_rand == 4) ? "wobble"
: "twang");
msg += random_choose_string("twist", "bend", "vibrate",
"flex", "wobble", "twang", NULL);