case INTRIGUE_TYPE_DECEPTION:
{
Localization::String strSummary;
Localization::String strNotification;
if(kMessage.m_eTargetPlayer == m_pPlayer->GetID()) // if we found intrigue related to us
{
strSummary = Localization::Lookup("TXT_KEY_NOTIFICATION_INTRIGUE_PLOTTING_AGAINST_YOU_S");
if(GC.getGame().isGameMultiPlayer() && GET_PLAYER(kMessage.m_eSourcePlayer).isHuman())
{
strSummary << GET_PLAYER(kMessage.m_eSourcePlayer).getNickName();
}
else
{
strSummary << GET_PLAYER(kMessage.m_eSourcePlayer).getNameKey();
}
strNotification = Localization::Lookup("TXT_KEY_NOTIFICATION_INTRIGUE_PLOTTING_AGAINST_YOU");
strNotification << GetSpyRankName(m_aSpyList[uiSpyIndex].m_eRank);
strNotification << m_pPlayer->getCivilizationInfo().getSpyNames(m_aSpyList[uiSpyIndex].m_iName);
CvAssertMsg(pCity, "City should be defined but is null");
if(pCity)
{
strNotification << pCity->getNameKey();
}
if(GC.getGame().isGameMultiPlayer() && GET_PLAYER(kMessage.m_eSourcePlayer).isHuman())
{
strNotification << GET_PLAYER(kMessage.m_eSourcePlayer).getNickName();
}
else
{
strNotification << GET_PLAYER(kMessage.m_eSourcePlayer).getNameKey();
}
}
else if(kMessage.m_eTargetPlayer == NO_PLAYER) // if we don't know who the intrigue information is about
{
strSummary = Localization::Lookup("TXT_KEY_NOTIFICATION_INTRIGUE_PLOTTING_AGAINST_UNKNOWN_S");
if(GC.getGame().isGameMultiPlayer() && GET_PLAYER(kMessage.m_eSourcePlayer).isHuman())
{
strSummary << GET_PLAYER(kMessage.m_eSourcePlayer).getNickName();
}
else
{
strSummary << GET_PLAYER(kMessage.m_eSourcePlayer).getNameKey();
}
strNotification = Localization::Lookup("TXT_KEY_NOTIFICATION_INTRIGUE_PLOTTING_AGAINST_UNKNOWN");
strNotification << GetSpyRankName(m_aSpyList[uiSpyIndex].m_eRank);
strNotification << m_pPlayer->getCivilizationInfo().getSpyNames(m_aSpyList[uiSpyIndex].m_iName);
CvAssertMsg(pCity, "City should be defined but is null");
if(pCity)
{
strNotification << pCity->getNameKey();
}
if(GC.getGame().isGameMultiPlayer() && GET_PLAYER(kMessage.m_eSourcePlayer).isHuman())
{
strNotification << GET_PLAYER(kMessage.m_eSourcePlayer).getNickName();
}
else
{
strNotification << GET_PLAYER(kMessage.m_eSourcePlayer).getNameKey();
}
}
else // if we found intrigue related to another player
{
strSummary = Localization::Lookup("TXT_KEY_NOTIFICATION_INTRIGUE_PLOTTING_AGAINST_KNOWN_S");
if(GC.getGame().isGameMultiPlayer() && GET_PLAYER(kMessage.m_eSourcePlayer).isHuman())
{
strSummary << GET_PLAYER(kMessage.m_eSourcePlayer).getNickName();
}
else
{
strSummary << GET_PLAYER(kMessage.m_eSourcePlayer).getNameKey();
}
if(GC.getGame().isGameMultiPlayer() && GET_PLAYER(kMessage.m_eTargetPlayer).isHuman())
{
strSummary << GET_PLAYER(kMessage.m_eTargetPlayer).getNickName();
}
else
{
strSummary << GET_PLAYER(kMessage.m_eTargetPlayer).getNameKey();
}
strNotification = Localization::Lookup("TXT_KEY_NOTIFICATION_INTRIGUE_PLOTTING_AGAINST_KNOWN");
strNotification << GetSpyRankName(m_aSpyList[uiSpyIndex].m_eRank);
strNotification << m_pPlayer->getCivilizationInfo().getSpyNames(m_aSpyList[uiSpyIndex].m_iName);
CvAssertMsg(pCity, "City should be defined but is null");
if(pCity)
{
strNotification << pCity->getNameKey();
}
if(GC.getGame().isGameMultiPlayer() && GET_PLAYER(kMessage.m_eSourcePlayer).isHuman())
{
strNotification << GET_PLAYER(kMessage.m_eSourcePlayer).getNickName();
}
else
{
strNotification << GET_PLAYER(kMessage.m_eSourcePlayer).getNameKey();
}
if(GC.getGame().isGameMultiPlayer() && GET_PLAYER(kMessage.m_eTargetPlayer).isHuman())
{
strNotification << GET_PLAYER(kMessage.m_eTargetPlayer).getNickName();
}
else
{
strNotification << GET_PLAYER(kMessage.m_eTargetPlayer).getNameKey();
}
}
pNotifications->Add(NOTIFICATION_INTRIGUE_DECEPTION, strNotification.toUTF8(), strSummary.toUTF8(), -1, -1, kMessage.m_eTargetPlayer);
}
break;