git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1608 c06c8d41-db1a-0410-9941-cceddc491573
557IY36VX2M4ERVCP5HNI3YTHHVTHPETZ5RWDX5BKDKXXIYCFUJAC
XRZPPYWPWUOM4SFNI6BHKH2UKJQNLKOV6Y7XIEPEZXE5QYRT26PAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
A3CO4KBFTFU3ZSHWRY2OPPX3MMTFV7OUCZGL7Q4Y2FU7JO4AP7MAC
YCL3W2PFE6ILTGBFODCSXNPDIA46KVSZP2TI7HDMYAOEJT65RIEAC
CIPVRZGLOZHCERK6YPOBV3P2E4IAB4H6D5EHLRQE2O5E4P4VCBUAC
// you'll see why later on {dlb}
strcpy(stringy, (temp_rand == 0) ? "writhing" :
(temp_rand == 1) ? "bold" :
(temp_rand == 2) ? "faint" :
(temp_rand == 3) ? "spidery" :
(temp_rand == 4) ? "blocky" :
(temp_rand == 5) ? "angular" :
(temp_rand == 6) ? "shimmering" :
(temp_rand == 7) ? "glowing" : "");
if (!result.empty())
result += ' ';
strcat(stringy, (temp_rand == 0) ? "yellow" :
(temp_rand == 1) ? "brown" :
(temp_rand == 2) ? "black" :
(temp_rand == 3) ? "purple" :
(temp_rand == 4) ? "orange" :
(temp_rand == 5) ? "lime-green" :
(temp_rand == 6) ? "blue" :
(temp_rand == 7) ? "grey" :
(temp_rand == 8) ? "silver" :
(temp_rand == 9) ? "gold" :
(temp_rand == 10) ? "umber" :
(temp_rand == 11) ? "charcoal" :
(temp_rand == 12) ? "pastel" :
(temp_rand == 13) ? "mauve"
: "colourless");
result +=
(temp_rand == 0) ? "yellow" :
(temp_rand == 1) ? "brown" :
(temp_rand == 2) ? "black" :
(temp_rand == 3) ? "purple" :
(temp_rand == 4) ? "orange" :
(temp_rand == 5) ? "lime-green" :
(temp_rand == 6) ? "blue" :
(temp_rand == 7) ? "grey" :
(temp_rand == 8) ? "silver" :
(temp_rand == 9) ? "gold" :
(temp_rand == 10) ? "umber" :
(temp_rand == 11) ? "charcoal" :
(temp_rand == 12) ? "pastel" :
(temp_rand == 13) ? "mauve"
: "colourless";
strcat(stringy, (temp_rand == 0) ? "writing" :
(temp_rand == 1) ? "scrawl" :
(temp_rand == 2) ? "sigils" :
(temp_rand == 3) ? "runes" :
(temp_rand == 4) ? "hieroglyphics" :
(temp_rand == 5) ? "scrawl" :
(temp_rand == 6) ? "print-out" :
(temp_rand == 7) ? "binary code" :
(temp_rand == 8) ? "glyphs" :
(temp_rand == 9) ? "symbols"
: "text");
result +=
(temp_rand == 0) ? "writing" :
(temp_rand == 1) ? "scrawl" :
(temp_rand == 2) ? "sigils" :
(temp_rand == 3) ? "runes" :
(temp_rand == 4) ? "hieroglyphics" :
(temp_rand == 5) ? "scrawl" :
(temp_rand == 6) ? "print-out" :
(temp_rand == 7) ? "binary code" :
(temp_rand == 8) ? "glyphs" :
(temp_rand == 9) ? "symbols"
: "text";
strcpy(wc, (coll_div16 == 0 || coll_div16 == 7) ? "brilliant" :
(coll_div16 == 1 || coll_div16 == 8) ? "pale" :
(coll_div16 == 2 || coll_div16 == 9) ? "mottled" :
(coll_div16 == 3 || coll_div16 == 10) ? "shimmering" :
(coll_div16 == 4 || coll_div16 == 11) ? "bright" :
(coll_div16 == 5 || coll_div16 == 12) ? "dark" :
(coll_div16 == 6 || coll_div16 == 13) ? "shining"
: "faint");
result =
(coll_div16 == 0 || coll_div16 == 7) ? "brilliant" :
(coll_div16 == 1 || coll_div16 == 8) ? "pale" :
(coll_div16 == 2 || coll_div16 == 9) ? "mottled" :
(coll_div16 == 3 || coll_div16 == 10) ? "shimmering" :
(coll_div16 == 4 || coll_div16 == 11) ? "bright" :
(coll_div16 == 5 || coll_div16 == 12) ? "dark" :
(coll_div16 == 6 || coll_div16 == 13) ? "shining"
: "faint";
strcat(wc, (coll == 0) ? "red" :
(coll == 1) ? "purple" :
(coll == 2) ? "green" :
(coll == 3) ? "orange" :
(coll == 4) ? "magenta" :
(coll == 5) ? "black" :
(coll == 6) ? "grey" :
(coll == 7) ? "silver" :
(coll == 8) ? "gold" :
(coll == 9) ? "pink" :
(coll == 10) ? "yellow" :
(coll == 11) ? "white" :
(coll == 12) ? "brown" :
(coll == 13) ? "aubergine" :
(coll == 14) ? "ochre" :
(coll == 15) ? "leaf green" :
(coll == 16) ? "mauve" :
(coll == 17) ? "azure"
: "colourless");
result +=
(coll == 0) ? "red" :
(coll == 1) ? "purple" :
(coll == 2) ? "green" :
(coll == 3) ? "orange" :
(coll == 4) ? "magenta" :
(coll == 5) ? "black" :
(coll == 6) ? "grey" :
(coll == 7) ? "silver" :
(coll == 8) ? "gold" :
(coll == 9) ? "pink" :
(coll == 10) ? "yellow" :
(coll == 11) ? "white" :
(coll == 12) ? "brown" :
(coll == 13) ? "aubergine" :
(coll == 14) ? "ochre" :
(coll == 15) ? "leaf green" :
(coll == 16) ? "mauve" :
(coll == 17) ? "azure"
: "colourless";
weird_colours(random2(256), wc);
mprf("%s glows %s for a moment.",
you.inv[you.equip[EQ_WEAPON]].name(DESC_CAP_YOUR).c_str(),
wc);
msg::stream << you.inv[you.equip[EQ_WEAPON]].name(DESC_CAP_YOUR)
<< " glows " << weird_colours(random2(256))
<< " for a moment." << std::endl;
you.had_book[ BOOK_MINOR_MAGIC_I ] = 1;
you.had_book[ BOOK_MINOR_MAGIC_II ] = 1;
you.had_book[ BOOK_MINOR_MAGIC_III ] = 1;
you.had_book[ BOOK_MINOR_MAGIC_I ] = true;
you.had_book[ BOOK_MINOR_MAGIC_II ] = true;
you.had_book[ BOOK_MINOR_MAGIC_III ] = true;