Changing the civilization short description during the game

Leoreth

Bofurin
Retired Moderator
Joined
Aug 23, 2009
Messages
38,093
Location
風鈴高等学校
I hope you can help me out with this. To expand the dynamic civ name system in RFC (which to date only changes the civ description), I'd like to change their short description too under certain circumstances. RFC already has this function to do this, which is also exposed to Python:
Code:
void CvPlayer::setCivName(std::wstring szNewDesc, std::wstring szNewShort, std::wstring szNewAdj)
{
	m_szCivDescKey = szNewDesc;
	m_szCivShort = szNewShort;
	m_szCivAdj = szNewAdj;
	gDLL->getInterfaceIFace()->setDirty(Score_DIRTY_BIT, true);
	gDLL->getInterfaceIFace()->setDirty(Foreign_Screen_DIRTY_BIT, true);
	gDLL->getInterfaceIFace()->setDirty(InfoPane_DIRTY_BIT, true);
	gDLL->getInterfaceIFace()->setDirty(Flag_DIRTY_BIT, true);
	gDLL->getEngineIFace()->SetDirty(CultureBorders_DIRTY_BIT, true);
	gDLL->getInterfaceIFace()->setDirty(GameData_DIRTY_BIT, true);
}
But when I call this function in Python, the short description does not change in game. Maybe there's something missing that needs to be updated?
 
Back
Top Bottom