Jeckel
Aug 31, 2008, 01:29 PM
A mod to put some controls on the way Religions act in the Game.
1: New GlobalDefine, MAX_HOLY_CITY_COUNT, to control the number of Religions a Player can Found.
2: Another new GlobalDefine, MAX_RELIGION_COUNT_PER_CITY, to control the number of Religions that can be in a give City at one time.
keldath
Aug 31, 2008, 02:34 PM
awesome man!!!
your now my official favorite modder !
Jeckel
Aug 31, 2008, 04:13 PM
awesome man!!!
your now my official favorite modder !
Thanx bro, its nice to have fans. :band: :cool: :cooool: :cool: :rockon:
Jeckel
Aug 31, 2008, 07:32 PM
I started looking into this a little bit now that I uploaded my latest release.
I got the number of Religions in a City done. Here is the single if statement in CvUnit::canSpread that accomplishes it.
if (pCity->isHasReligion(eReligion))
{
return false;
}
// < JReligionLimit Mod Start >
if (pCity->getReligionCount() >= GC.getDefineINT("MAX_RELIGION_COUNT_IN_A_CITY"))
{
return false;
}
// < JReligionLimit Mod End >
I am looking into the Max Holy Cities per Player now and will post when I have more info on that aspect. :cooool:
keldath
Sep 05, 2008, 07:41 AM
any update on this one mate?
Jeckel
Sep 06, 2008, 09:15 AM
Not much to report at the moment. I've been pretty swamped with RL stuff and my free time was taken up with playing Spore, but I'm working on it a little bit today.
Since there is no canHaveReligion or canFoundReligion in there, I will have to highjack the code at certain points. I'm really just debating on where to do that. If all goes well, I will try to get this done today or tomorrow. :)
Jeckel
Sep 06, 2008, 05:27 PM
Ok, my first attempt at limiting the number of Religions you can found didn't work the way I expected. It seems I am going to have to do a little more in depth research into how Religion Founding works.
For the moment, I am going to hold off on that and instead I am going to finish up the Limited Religion Count per City part and get the Flying Help Text all showing right and what not for that feature and I will release with just that part working, then I will get back to limiting Holy City Count per Player.
Anyway, won't get that out tonight, but will look at it first thing when I get home tomorrow night. :king:
Jeckel
Sep 08, 2008, 10:29 PM
Well, its going to be a few more days.. :mischief:
I got kinda side tracked by my new JWeather project and didn't get this uploaded before I left town yesterday. Good news though, I think I found a good way to do the Holy City Limit per Player. :cool:
Its going to be a few days before I get back to my modding computer, but unless you really want the current version, I will just hold off until later this week and upload when I get this next part done. :king:
keldath
Sep 09, 2008, 09:06 AM
awesome jeckel..you prbably know i cant wai for this :)
also the weather project..wow...sounds like a whole new aspect that can be alot of fun!