commented out, for now) the dependency of the W/T, P/R merge of easy_unequip (I'd completely mixed up the options.) If we decide we keep this behaviour and don't add a replacement option, the commented out "You're already wearing that." messages can be removed.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3619 c06c8d41-db1a-0410-9941-cceddc491573
72GIZBEMQLEF3TITOHABWHRLL5TE7KOUSVWOUEHFMO2OZQ4EIB7AC
32RFWHFR63CXAG4TXTANBTV35GC4EZHZDCR6LKWT5NBUTVSARH7QC
THEWZBBFONK266AMYIIFQ4SFGZMTMU62ZO2Y43UMCDD6DDBSDYKAC
E3X5HVN5UN75OMTJA6JFQBNZ54P37NDZLZZF7EFBZZC45KR73YGAC
6GSGCC5JQJ5NOKX36UHRNOCXNHDBS2A2TDMAR34UBOGWE2DORXIQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
3QLM46S44Z7GDLWPH3VHBMW2RSWZAOLGJMG2BDKNGUOZIM4IX6WAC
J6APXOT4QOGQFONWB7G546VTVF6QG42HVOROMHF7YBDJPR4K26OAC
YM3U5YZEFIYLRJVDWQCSP75JL56WC36XLQSL5ZBT4IWSXYJRBCBAC
G5WLU3B4MR3ZDJLGR6OHNIMLZXGQS2EWBJ5YYY5J2GWM6DTD44BAC
EEZCC5GUYHETFQV4KSZJSJ6BTTWZHKS7RXQ25XQ6ODGKLDD4XFRAC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
64RZSOR4B4T5QO3FAERBTH2QJIQFSCIFHI4WYK3MDAEAZVAHRLVQC
BMHUBADDGIOZRVN4P3O5QKIDUYD4RFWBS7MP5X6LZWAYHUBRVD2QC
2VDLCWQOJPOXPJQ7XYGOWZG5P2AE44DGFHC76WI4GBOOK4B7FQTQC
AIIVH43Z5X3GTPFY4FXQRZPG6Y7QPH2KJ47VM2Q43PCGGD5MTMOAC
G7CTMQ3VNTAB73ZI3LNZHKTAJ5LEQEGG772MVFQQ5XXLCMJVORTQC
3RR5RASA63JOMIHQONIMP55RFG4AJW4GWFAUWN65OECAFTCQY3PQC
msg = try_exact_string(prefixes, key, true, true);
else if (religion)
{
if (religion) // skip hostile and religion
msg = try_exact_string(prefixes, key, true, false, true);
else // skip hostile and related
msg = try_exact_string(prefixes, key, true, true);
}
else if (religion) // skip hostile, related and religion
# command keys, monster colours, item colours, butchering interface,
# targeting interface.
# (New players should go ignore these lines.)
# monster colours, command keys, order on the character selection screen,
# item colours, butchering interface, targeting interface.
# (New players should just ignore these lines.)
are.
are. Stupid monsters, i.e. animals, will judge your relatedness status
according to your transformed looks while smart monsters will see
through that magic, so that e.g. vampires will recognise a vampire in
bat form as one of their own but a giant bat would think the player
really is a bat.
added to the list. If you worship one of the good gods (Zin, Elyvilon,
or The Shining One) the prefix "good god" is used instead.
Conversely, worshippers of one of the evil gods (Yredelemnul, Makhleb,
Kikubaaqudgha, Lugonu, Xom, Beogh, or Vehumet) will use the prefix
"evil god".
added to the list, though not for charmed orcs who will simply use the
generic friendly statements instead of the orcish followers' cheers.
If you worship one of the good gods instead (Zin, The Shining One, or
Elyvilon) the prefix "good god" is used. Conversely, worshippers of one
of the evil gods (Yredelemnul, Makhleb, Kikubaaqudgha, Lugonu, Xom,
Beogh, or Vehumet) will use the prefix "evil god".
database, so first we try to remove the less important prefixes,
something that in this case only applies to "beogh". Unfortunately,
"friendly fleeing orc wizard" also has no corresponding entry in the
database, so that, one after another, we now check for "default
friendly fleeing beogh orc wizard", "default friendly fleeing orc
wizard", "default friendly beogh orc wizard", "default fleeing beogh
orc wizard", "default friendly orc wizard", "default fleeing orc
wizard", "default beogh orc wizard" and "default orc wizard", none of
which is successful.
The genus of orc wizards is "orc", so we retry the above using "orc"
instead of "orc wizard". The same is repeated for "friendly fleeing
beogh 'o'", and we still haven't found anything.
database, so first we try to remove the less important prefixes, in
this case "related" and "beogh". Unfortunately, none of "friendly
fleeing related orc wizard", "friendly fleeing beogh orc wizard", or
"friendly fleeing orc wizard" has any corresponding entry in the
database, so that we now check for "default" in combination with, one
after another, all combinations of three or less prefixes.
Three prefixes: "default friendly fleeing related orc wizard",
"default friendly fleeing beogh orc wizard", "default friendly
related beogh orc wizard", "default fleeing related beogh orc
wizard".
Two prefixes: "default friendly fleeing orc wizard", "default
friendly related orc wizard", "default friendly beogh orc wizard",
"default fleeing related orc wizard", "default fleeing beogh orc
wizard", "default related beogh orc wizard".
One prefix: "default friendly orc wizard", "default fleeing orc
wizard", "default related orc wizard", "default beogh orc wizard".
No prefix: "default orc wizard".
Sadly, none of these is successful. The genus of orc wizards is
"orc", so we retry the above using "orc" instead of "orc wizard". The
same is repeated for "friendly fleeing beogh 'o'", and we still
haven't found anything.
the database for "friendly fleeing beogh humanoid", something that,
not surprisingly (since Beogh and humanoid don't go well together)
doesn't exist. Annoyingly enough, neither does "friendly fleeing
humanoid".
the database for "friendly fleeing related beogh humanoid", something
that, not surprisingly (since Beogh and humanoid don't go well
together), doesn't exist. Annoyingly enough, neither do the variants
"friendly fleeing related humanoid", "friendly fleeing beogh
humanoid" or even "friendly fleeing humanoid".
friendly fleeing beogh humanoid" is still unsuccessful, but with
"default friendly fleeing humanoid" we finally strike gold:
friendly fleeing related humanoid" is still unsuccessful, as
are "default friendly fleeing beogh humanoid", "default friendly
related beogh humanoid", and "default fleeing related beogh
humanoid", but with "default friendly fleeing humanoid" we finally
strike gold:
Also, in insult.txt you'll find the hardcoded variables
@species_insult_adj1@, @species_insult_adj2@ and @species_insult_noun@.
These are sometimes used in the construction of imps' or demons'
generic insults, and allow for species-dependent handling. If the
parser encounters such a variable, it will search the database for the
corresponding specific entry, i.e. "insult <genus> adj1/adj2/noun"
where <genus> is replaced with the actual genus name, that is
"draconian", "elf" or "dwarf" instead of the more specific species
name, "ogre" for "ogre-mage", or the actual species name in all other
cases.
If this specific search doesn't yield any results, that is, such an
entry hasn't been defined for the species in question, the general
replacements are used instead.
For shouts the default is also MSGCH_TALK which is automatically
changed to MSGCH_TALK_VISUAL for monsters that can't speak (animals,
usually), and manually set to MSGCH_SOUND for all those variants of
"You hear a shout!"
For shouts the default channel is also MSGCH_TALK, which is
automatically changed to MSGCH_TALK_VISUAL for monsters that can't
speak (animals, usually), and manually set to MSGCH_SOUND for all those
variants of "You hear a shout!"