The Great Apple
Big Cheese
Updated to 1.61.0005a. Nothing too major. See changelog in first post for details.
Here is the code that is used here. As far as I am aware it works fine. Approx line 2821 in CvGameTextManager.cpp:LittleRedPoint said:Well my mistake, yes the negative values are suported but it is shown incorrect in civic screen. Sevo had managed to get this showing thing work. I'm interested to get it work in warlords, so i want to know how it can be done..
Code:
if (GC.getCivicInfo(eCivic).getNonStateReligionHappiness() != 0)
{
if (GC.getCivicInfo(eCivic).isStateReligion())
{
[B]/* START - TGA | Fixing text misstating unhappiness in civic display | v0.06 | 18 July 2006 */
szHelpText += NEWLINE + gDLL->getText("TXT_KEY_CIVIC_NON_STATE_REL_HAPPINESS_NO_STATE", abs(GC.getCivicInfo(eCivic).getNonStateReligionHappiness()), ((GC.getCivicInfo(eCivic).getNonStateReligionHappiness() > 0) ? gDLL->getSymbolID(HAPPY_CHAR) : gDLL->getSymbolID(UNHAPPY_CHAR)));
/* Original:
szHelpText += NEWLINE + gDLL->getText("TXT_KEY_CIVIC_NON_STATE_REL_HAPPINESS_NO_STATE");
END - TGA | Fixing text misstating unhappiness | v0.06 | 18 July 2006 */[/B]
}
else
{
szHelpText += NEWLINE + gDLL->getText("TXT_KEY_CIVIC_NON_STATE_REL_HAPPINESS_WITH_STATE", abs(GC.getCivicInfo(eCivic).getNonStateReligionHappiness()), ((GC.getCivicInfo(eCivic).getNonStateReligionHappiness() > 0) ? gDLL->getSymbolID(HAPPY_CHAR) : gDLL->getSymbolID(UNHAPPY_CHAR)));
}
}