platyping
Sleeping Dragon
Matsumoto Castle
Spoiler :

Thanks, not sure how to code that though, because I think the obsolete defense part comes under SDK
What Matsumoto does is just ensures the CURRENT defense is back at MAX each turn.
However, there isn't any python code to adjust MAX defense, which is based on culture level
def gaul(*args):
"Power of the Dun - Cities built on hills get +10% defence"
if args:
if len(args) == 3:
pCity, eOwner, eNewOwner = args
else:
pCity, eOwner = args
eNewOwner = eOwner
iExtraDefense = pCity.getExtraDefense()
if eOwner != pointer("Gaul", playerID) != eNewOwner: return
if eNewOwner == pointer("Gaul", playerID):
if pCity.plot().isHills() and iExtraDefense == 0:
[B]pCity.changeExtraDefense(iGallicDefenseBonus)[/B]
elif iExtraDefense > 0:
[B] pCity.changeExtraDefense(-iGallicDefenseBonus)[/B]
else:
for pCity in list(city.GetCy() for city in pointer("Gaul", PyPlayer).getCityList()):
if pCity.plot().isHills():
[B]pCity.changeExtraDefense(iGallicDefenseBonus)[/B]
i get your pint but most people dont mod pythong and civics would really benefit the gameActually, most python benefits of those wonders, can be used for civics or traits.
For instance, at game start, if player has xxx trait, increase fishing boat commerce.
Only issue is this will only affect players available at turn 1. New ones liberated will not be affected, so extra codes have to be done in first contact or probably vassal
If I really got nothing left to do, I may explore letting it trigger event for those extra benefits like inflation.
Edit:
Traits
1) Rewrote Creative codes for new Cities.
No more if else statements. Works for all Mods
2) Slightly changed Organized codes for Religion Changes
Known Issue:
Charismatic Trait will not work properly if Team has more than 1 Player