DeathMaker900
Chieftain
- Joined
- Jun 12, 2009
- Messages
- 51
for a mod comp I'm making i need to edit the city.canTrain() function so that it no longer checks what bonuses you have. it calls a python function which i thought was on line 123 of CvGameUtils.py but if that's it I'm clearly missing something.
the text canTrain is found in the following files on the following lines (useful recursive line search program is useful):
ive looked at each of those files and i just don't get it, can anyone explain to me where the actual logic for the check is performed?
Code:
def canTrain(self,argsList):
pCity = argsList[0]
eUnit = argsList[1]
bContinue = argsList[2]
bTestVisible = argsList[3]
return False
the text canTrain is found in the following files on the following lines (useful recursive line search program is useful):
Code:
CvAdvisorUtils.py : line 403
CvAdvisorUtils.py : line 446
CvAdvisorUtils.py : line 489
CvAdvisorUtils.py : line 537
CvGameUtils.py : line 123
PyHelpers.py : line 472
PyHelpers.py : line 473
EntryPoints\CvGameInterface.py : line 111
EntryPoints\CvGameInterface.py : line 112
EntryPoints\CvGameInterface.py : line 113
Screens\CvMainInterface.py : line 1270
Screens\CvMainInterface.py : line 1274
ive looked at each of those files and i just don't get it, can anyone explain to me where the actual logic for the check is performed?