phungus420
Deity
- Joined
- Mar 1, 2003
- Messages
- 6,296
I have this function:
And I want it to go:
How do I call up mapsize in Python? Is this even possible mid game?
Code:
# Distance to capital City Distance modified by communication techs and structures
cityDistModifier = plotDistance( pCity.getX(), pCity.getY(), capital.getX(), capital.getY())
cityDistModifier = min([cityDistModifier, 27]) - 4
And I want it to go:
Code:
# Distance to capital City Distance modified by communication techs and structures
cityDistModifier = plotDistance( pCity.getX(), pCity.getY(), capital.getX(), capital.getY())
if(#mapsizeHuge)
cityDistModifier = (min([cityDistModifier, 27]) - 4)*.5
elif(#mapsizeLarge)
cityDistModifier = (min([cityDistModifier, 27]) - 4)*.75
#etc.
How do I call up mapsize in Python? Is this even possible mid game?