conduct, and exercise it on every stabbing attempt, whether it succeeds or not (and also whether the player is berserk or not, since a berserk player trying to stab seems unchivalrous to me).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5093 c06c8d41-db1a-0410-9941-cceddc491573
QCSLMPAVJIRPFKQRPQH2KGKHEWMVD3PD3EFEC3P5QM4Y5TMTDYMQC
B6X2JQ6LF5EEDKFOXKX4RQYH6GW3LXB5E4WTIUVHSXTO4TIZA24QC
R5HVRGDKUX6A2H4DRHGWFBC2P625VAJHDZTERDMLFVXWSZLMHKRAC
PWY5MJCCVT2CG3GP6J7V745QNATG7XYOBZFUM5VJDQ66F6U2BN7QC
YAICSBIJYVK6MB6GQL7AD4TYLXG3QDEIESQ5DJO5DX76VTDBRBDAC
6ZCVQRDZKSACHHTXSPDULWE5TVBSRSSGNNRJXYYCJ3B2EKSXMA4AC
LZCOSASOXI4O7FECCGW4WB3EN663KGVGK5ORENGATHKKC62BHCBAC
VBG2GGMVC66LQM4OSI67VKXGAQK4GVOEHX3OL6V3IFOO52MQL72QC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
WNDCC2WZEUQ2SHRQZUAAK3A4QF5JGLDJ5D3WLKLNXYSCK4TZ7KZAC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
Y2D4QGP6AQHJDYAWZ3PHROEPK3HKBGWSXPUQK4BXMYISFEFZLWNQC
TKMP77MRVIJ2MW3WYJKDHT736Q2EZSSSG4Q4CT5ZXBFFNSWFEWNQC
R22TTMI6WXWULC7ODKFF3QCB7MOTETQQ6IR4BUCUPOCQKQNCTT5AC
GBCLP4O23XSCRFH3DY5EEPBFEQVQR7BH7EI6AQGDCLFMFKA7PLJAC
XPYQ5L7MZ7TJEBNWLXJJ5LSZ3T2FXAPRSZD6KQJ7TU2HOFSUW67QC
O3VTFHATCIAAJ4HQF2VJIEXHDZ6RJYJKXJ4ST65WWV26BSGW4YWQC
U24V52ZGVQ2XGYA4RNKT26VIIEKUYC6AUEWZSDYJFXB5ZWMMXTPAC
"Attack Friend", "Friend Died", "Stab", "Poison", "Field Sacrifice",
"Kill Living", "Kill Undead", "Kill Demon", "Kill Natural Evil",
"Kill Mutator Or Rotter", "Kill Wizard", "Kill Priest",
"Kill Holy", "Undead Slave Kill Living", "Servant Kill Living",
"Servant Kill Undead", "Servant Kill Demon",
"Attack Friend", "Friend Died", "Unchivalric Attack", "Poison",
"Field Sacrifice", "Kill Living", "Kill Undead", "Kill Demon",
"Kill Natural Evil", "Kill Mutator Or Rotter", "Kill Wizard",
"Kill Priest", "Kill Holy", "Undead Slave Kill Living",
"Servant Kill Living", "Servant Kill Undead", "Servant Kill Demon",
// Returns true if the Shining One doesn't mind your stabbing this
// creature.
bool tso_stab_safe_monster(const actor *act)
// Returns true if the Shining One doesn't mind your using unchivalric
// attacks on this creature.
bool tso_unchivalric_attack_safe_monster(const actor *act)
{
stab_attempt = false;
stab_bonus = 0;
}
// no stabs while berserk
if (you.duration[DUR_BERSERKER])