fixed some bugs in new 'g'o system
[k8-i-v-a-n.git] / src / game / items / holybook_constitution.cpp
blob87f29ad0682006bfcbb3b72cdbef940331cff8bc
1 #ifdef HEADER_PHASE
2 ITEM(constitution, holybook)
4 public:
5 virtual void FinishReading(character*);
6 protected:
7 virtual col16 GetMaterialColorA(int) const;
8 };
11 #else
15 void constitution::FinishReading (character *Reader) {
16 if (Reader->IsPlayer()) {
17 game::TextScreen(CONST_S(
18 "You see here an article on repelling an imperialist invasion.\n"
19 "It is difficult to read, being rather hastily handwritten, probably by the Tweraifian\n"
20 "lawmakers just before the invasion was complete. It reads:\n"
21 "\n"
22 "\"Article 62.5: In Case of Imperialist Invasion:\"\n"
23 "\n"
24 "\"Having freed the people of Tweraif of the Imperialist government, take the seedling\n"
25 "of the Holy Mango Tree, and plant the seedling upon that wretched banana drop area. \n"
26 "Then, thou wilt be pronounced the Liberator of Tweraif.\""));
27 GetArea()->SendNewDrawRequest();
28 ADD_MESSAGE("You feel you know now what you must do. The constitution vanishes.");
29 RemoveFromSlot();
30 SendToHell();
36 col16 constitution::GetMaterialColorA (int) const {
37 return MakeRGB16(200, 200, 200);
39 #endif