6 new categories and 72 new items added to the shop!Fake forum EC for posting doubled everywhere to help pay for them!
0 Members and 2 Guests are viewing this topic.
uint32_t __cdecl aah_ooga(int factionID, int allyFactionID) { if (!(*GameRules & VICTORY_PEACE_IN_OUR_TIME)) { return 0; // Diplomatic Victory not allowed } uint32_t votesTotal = 0; for (uint32_t i = 1; i < MaxPlayerNum; i++) { votesTotal += council_votes(i); } uint32_t factionIDRet = 0; for (int i = 1; i < MaxPlayerNum; i++) { if (i != allyFactionID && (!allyFactionID || (allyFactionID >= 0 && !(PlayersData.diploStatus[allyFactionID] & DSTATUS_PACT)) || !(*GameRules & VICTORY_ONE_FOR_ALL))) { uint32_t proposalPreq = Proposal[1].preqTech; // Unite Behind Me As Supreme Leader if (has_tech(proposalPreq, factionID) || (proposalPreq >= 0 && (has_tech(Technology[proposalPreq].preqTech1, factionID) || has_tech(Technology[proposalPreq].preqTech2, factionID)))) { if (council_votes(i) * 2 >= votesTotal && (!factionIDRet || i == factionID)) { factionIDRet = i; } } } } return factionIDRet;}
if (aah_ooga(0, -1)) { return true; }