finished adding content from CLIVAN; not tested yet
[k8-i-v-a-n.git] / src / game / items / holybook_celestialmonograph.cpp
blob5ec5f41da18cfe50ca4025b83b64eebe56ac970f
1 #ifdef HEADER_PHASE
2 ITEM(celestialmonograph, holybook)
4 public:
5 virtual void FinishReading (character *);
7 protected:
8 virtual col16 GetMaterialColorA (int) const;
9 };
12 #else
15 void celestialmonograph::FinishReading (character *Reader) {
16 if (Reader->IsPlayer()) {
17 PLAYER->EditExperience(INTELLIGENCE, 500, 1<<12);
18 PLAYER->EditExperience(WISDOM, 250, 1<<12);
19 game::SetRelationsToAllGods(0);
20 for (int c = 1; c <= GODS; ++c) if (game::GetGod(c)->IsKnown()) game::GetGod(c)->SetIsKnown(false);
21 ADD_MESSAGE("The stimulating celestial monograph removes all your memory of the pantheon and disappears.");
22 RemoveFromSlot();
23 SendToHell();
28 col16 celestialmonograph::GetMaterialColorA (int) const {
29 return MakeRGB16(40, 140, 40);
31 #endif