Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (21 sloc) 771 Bytes
from shootblues import Dependency
Dependency("Common.Script.dll")
from shootblues.common import log
import util.Moniker
oldMonikeredCall = None
def _MonikeredCall(self, call, sess):
global oldMonikeredCall
methodName, args, kwargs = call
if methodName == "WarpToStuffAutopilot":
methodName = "WarpToStuff"
args = ('item', args[0])
kwargs = {'minRange': 0}
log("Intercepting autopilot warp attempt")
return oldMonikeredCall(self, (methodName, args, kwargs), sess)
else:
return oldMonikeredCall(self, call, sess)
oldMonikeredCall = util.Moniker.MonikeredCall
util.Moniker.MonikeredCall = _MonikeredCall
def __unload__():
global oldMonikeredCall
util.Moniker.MonikeredCall = oldMonikeredCall