git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4870 c06c8d41-db1a-0410-9941-cceddc491573
S5IPZ6TIY6ICVYGJ25DHWDVAHWTNTTFJUDYE3MV5FVEDXY7J4APQC CGYTZT5QWIEGYKUOLOK7MFXSLJKLYRZONER5ZCDZO5XYWSLG475QC JJHOTW7LDUJ6DLUG2DTFWASCAFPGD2WBW7MHBSECJZU7PTJYWQDQC SVY2PTCLXR3KNPQAWXVXTTGCC5DR334HOAKHYO3VDDRWM2BWMALAC K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC UURAYLSSITZLQR56MCWFPIWMECU7F3USMA2UPJAO4IPIY5WVKP5QC UVJBHQ5KGUIEFRHKTYQPKSXYDUDKTRAXINUXGJJJ6QGNCR6JO7ZAC P2ZCF3BBG523ZEOD6XQA4X5YEHBTWH3IM33YVHXP2SQ5POXZIH4QC RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC JM7UAK777RAVDAVLQLEOBRTGNW2B47S5G55XITJXO243IUNZHVYQC //jmf: FIXME: put somewhere else (misc.cc?)// A feeble attempt at Nethack-like completeness for cute messages.std::string your_hand( bool plural ){std::string result;switch (you.attribute[ATTR_TRANSFORMATION]){default:mpr("ERROR: unknown transformation in your_hand() (spells4.cc)");case TRAN_NONE:case TRAN_STATUE:case TRAN_LICH:if (you.has_usable_claws()){result = "claw";break;}// or fall-throughcase TRAN_ICE_BEAST:result = "hand";break;case TRAN_SPIDER:result = "front leg";break;case TRAN_SERPENT_OF_HELL:case TRAN_DRAGON:case TRAN_BAT:result = "foreclaw";break;case TRAN_BLADE_HANDS:result = "scythe-like blade";break;case TRAN_AIR:result = "misty tendril";break;}if (plural)result += 's';return result;}
// A feeble attempt at Nethack-like completeness for cute messages.std::string your_hand(bool plural){std::string result;switch (you.attribute[ATTR_TRANSFORMATION]){default:mpr("ERROR: unknown transformation in your_hand() (spells4.cc)");case TRAN_NONE:case TRAN_STATUE:case TRAN_LICH:if (you.has_usable_claws()){result = "claw";break;}// deliberate fall throughcase TRAN_ICE_BEAST:result = "hand";break;case TRAN_SPIDER:result = "front leg";break;case TRAN_SERPENT_OF_HELL:case TRAN_DRAGON:case TRAN_BAT:result = "foreclaw";break;case TRAN_BLADE_HANDS:result = "scythe-like blade";break;case TRAN_AIR:result = "misty tendril";break;}if (plural)result += 's';return result;}