typos
[k8-i-v-a-n.git] / src / game / humans / humanoid_housewife.cpp
blobdd8f94aebea39008a5eb9354eacb724f75669d1c
1 #ifdef HEADER_PHASE
2 CHARACTER(housewife, humanoid)
4 public:
5 virtual truth SpecialEnemySightedReaction(character*);
6 protected:
7 virtual int GetHairColor() const;
8 virtual v2 GetHeadBitmapPos() const;
9 };
12 #else
16 v2 housewife::GetHeadBitmapPos() const { return v2(112, (RAND() % 6) << 4); }
20 col16 housewife::GetHairColor() const
22 static col16 HouseWifeHairColor[] = { MakeRGB16(48, 40, 8), MakeRGB16(60, 48, 24), MakeRGB16(200, 0, 0) };
23 return HouseWifeHairColor[RAND() % 3];
28 truth housewife::SpecialEnemySightedReaction(character* Char)
30 item* Weapon = Char->GetMainWielded();
32 if(Weapon && Weapon->IsWeapon(Char) && !(RAND() % 5))
33 ADD_MESSAGE("%s screams: \"Oh my Frog, %s's got %s %s!\"", CHAR_DESCRIPTION(DEFINITE), Char->CHAR_PERSONAL_PRONOUN_THIRD_PERSON_VIEW, Weapon->GetArticle(), Weapon->GetNameSingular().CStr());
35 return false;
37 #endif