[Python] NextWar's resource depletion code

This worked!

Code:
            for plot in lValidPlots:
                pOwner2 = plot.getTeam()
                pPlayer2 = gc.getTeam(pOwner2)
                pBonus2 = gc.getBonusInfo(iBonus)
                TechBonus = pBonus2.getTechReveal()
                
                if not pPlayer2.isHasTech(TechBonus):
                    return

Well, that only took a week and a half.... :badcomp:
 
Cool... a week and a half isn't too bad, all things considered :)

Now the big question is, does it really work, or does it just not spit out any errors? :D
 
Yes, it really works. I changed Ivory's random number to "10", and after a few turns, one of my worked Ivory resources "depleted". I haven't checked the fort or city yet....and I'm not sure how to check if the Environmentalism code is working. But that's at least promising.
 
Back
Top Bottom