highlighted prices
[k8-i-v-a-n.git] / src / game / humans / humanoid_assassin.cpp
blobe80cf5be8bfc0396d009e193e5625405ef8858ae
1 #ifdef HEADER_PHASE
2 CHARACTER(assassin, humanoid)
4 public:
5 virtual void BeTalkedTo();
6 };
9 #else
13 void assassin::BeTalkedTo () {
14 if (GetRelation(PLAYER) == HOSTILE) {
15 if (PLAYER->GetMoney() >= 1500) {
16 ADD_MESSAGE("%s talks: \"If you shell out \1Y1500\2 gold pieces I'll join your side\"", CHAR_DESCRIPTION(DEFINITE));
17 if (game::TruthQuestion(CONST_S("Do you want to bribe him?"))) {
18 PLAYER->SetMoney(PLAYER->GetMoney()-1500);
19 ChangeTeam(PLAYER->GetTeam());
20 RemoveHomeData();
22 } else {
23 ADD_MESSAGE("\"Trying to reason me with diplomancy won't work on me.\"");
27 #endif