What? All I need to know is what the Adjective names of the Civs concerned are. Like English, Pictic (?), Gallic (?) and so on. Otherwise you'll have to edit my modules and change these yourself.I would prefer if you asked him an way the TXT_KEYs are defined in my text file do you need that too?
This is what I have so far. The Pictic code is mostly in another module (.py file) and there is also a CivPlayer module at work here, hence the good looking code.
Spoiler :
PHP:
### Unique Civ abilities for Jamie's Rome Mod, by Baldyr
from CivPlayer import *
from Picts import *
### constants
# mod settings
iCarthageMoves = 1
eGreeceCivic = getIndex("Civic", "Universal Suffrage")
# eNums
eSailing = getIndex("Tech", "Sailing")
eSea = getIndex("Domain", "Sea")
# CivPlayer instances
pCarthage = Civ("Carthage")
pGreece = Civ("Greece")
### main functions
def carthage(eTech, ePlayer):
"Power of the Sea - +1 movement for all naval units"
if ePlayer == pCarthage.get(playerID) and eTech == eSailing:
pCarthage.get(CyTeam).changeExtraMoves(eSea, iCarthageExtraMoves)
def greece(ePlayer, eCivic):
"Power of Democracy - Enables Universal Sufferage from the start"
return ePlayer == pGreece.get(playerID) and eCivic == eGreeceCivic
def england():
"Power of Rebellion - Conquored English cities suffer increased unhappiness and a 30% chance of revolt"
def picts(pCity=None, bRaze=False):
"Power of the Highlands - Hills +1 food"
if pCity:
if bRaze:
checkHighlandsCity(pCity)
else:
newHighlandsCity(pCity)
checkHighlandsCity(pCity)
else:
processHighlandsCities()
def gaul():
"Power of the Dun - Cities built on hills get +10% defence"
I'm posting this because I want you to be able to follow my progress. So if I understand this correctly we're only missing England and Gaul, right? And the Picts need some additional tools to work the way you wanted.