krinndnz
Chieftain
I like tweaking my copy of FFH. Whilst going through the code, looking for ways to change what Unique Features do, I found this. This is what happens in Python when a unit unters the Mirror of Heaven's square.
I searched the source, forums, and wiki, but I can't figure out to my satisfaction what the getWBMapScript call does. It looks like it basically determines "is the current game a scenario or not?" and then, if the answer is yes, defers to ScenarioFunctions to find out what should happen.
Is this what the given code snippet does?
If so, my plan is to tack on the function I want in an else block, since I only want to change the behavior of single-player non-scenario games. Would that work?
Code:
def onMoveMirrorOfHeaven(pCaster, pPlot):
if CyGame().getWBMapScript():
sf.onMoveMirrorOfHeaven(pCaster, pPlot)
Is this what the given code snippet does?
If so, my plan is to tack on the function I want in an else block, since I only want to change the behavior of single-player non-scenario games. Would that work?