general and spells a god dislikes for the purpose of artefact spellbooks, in order to avoid e.g. Elyvilon's hating a book of conjurations.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8950 c06c8d41-db1a-0410-9941-cceddc491573
XJZXBPVEV3HQIWKQ5UYSEMQQ26C4N7QYW23ZIIXMUR2I2S73LUYAC
36WWMZBBIQ2J5NTW5YMOEDXIGEIILGYN2SSRLHEFMQ4GJJCW4TSQC
RHRLRHNN6F7OOLUXUK7ZAA75QRQLYIEBZUOWJKUCOMDUAQWDGKXAC
6F6OFJCUOBUP7QTVWSMSQPW25RLVRYVXO3VO5GLMFRY6K5RMOWFAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
KVMJCPD4RM6YUWIMO4LDHEIB5W62MTOCGBWAEFBHNOUDYLGKXQ3QC
3ZT5EQNS5KXWEXAKV7C3TTFZ6QHOCR57LTFTETPKIVZGTXHZKRQAC
JYEEOUYQ7ZPKOGWUV7VCORBVSOLF2UCBFBH3TR75RGOSS6PNKYUAC
PBKRKGKARGZSLVFVDTK5NWDXQD26NHNN67LDSSB75CLEWBR6TLEQC
4GYZYBY7FFORRNPIEFTV4ZM2C7Z6D2KTQOM537ZCC2YBXT2TNSHAC
FWNNTOEERPUKXPE4OC52UABFZLKIU3O5GRNNLDK4QI4HR2IOU36QC
V4F3SDV2H4HBH6G6W5M3REN3BDSSE4IDF2RNM7PJMKRW3IDJ7PNAC
QO5ZJWQ3JK3PEGBPTQSAYIPEJEHG2M2KTD74227G5VG7DVXUL3BQC
ABLV37FMURRJPEZV2VRKOUYAKEMLI7E6RA4PDAII2EJ5L7WBHKZQC
DMG73XDQHY2X2PHKWIY56XKD3O4NPGZKKIO6GX3IV2LLRVXPGKYQC
bool god_dislikes_rod(const item_def& item);
bool good_god_dislikes_item_handling(const item_def &item);
bool god_dislikes_item_handling(const item_def &item);
bool god_hates_rod(const item_def& item);
bool good_god_hates_item_handling(const item_def &item);
bool god_hates_item_handling(const item_def &item);
bool god_hates_spell_type(spell_type spell, god_type god = you.religion);
// TSO dislikes using poison, but is fine with curing it, resisting
// it or destroying it.
if ((disciplines & SPTYP_POISON) && spell != SPELL_CURE_POISON_I
// TSO hates using poison, but is fine with curing it, resisting
// it, or destroying it.
if ((disciplines & SPTYP_POISON) && spell != SPELL_CURE_POISON_I
// He probably also wouldn't like spells which would put enemies
case GOD_YREDELEMNUL:
if (is_holy_spell(spell))
return (true);
break;
default:
break;
}
return (false);
}
bool god_dislikes_spell_type(spell_type spell, god_type god)
{
if (god_hates_spell_type(spell, god))
return (true);
unsigned int flags = get_spell_flags(spell);
unsigned int disciplines = get_spell_disciplines(spell);
switch (god)
{
case GOD_SHINING_ONE:
// TSO probably wouldn't like spells which would put enemies