Fix Scorn's smith dialog
parent
340d6a9cb6
commit
4217a11b56
|
|
@ -17,6 +17,7 @@
|
||||||
## \d
|
## \d
|
||||||
## ENDDIALOGCHECK
|
## ENDDIALOGCHECK
|
||||||
|
|
||||||
|
import Crossfire
|
||||||
|
|
||||||
class checkfailed(Exception):
|
class checkfailed(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
@ -32,12 +33,12 @@ try:
|
||||||
raise checkfailed()
|
raise checkfailed()
|
||||||
markername = args[0]
|
markername = args[0]
|
||||||
oldtime = self.getStatus(markername).split("-")
|
oldtime = self.getStatus(markername).split("-")
|
||||||
oldtime = map(int, oldtime)
|
oldtime = list(map(int, oldtime))
|
||||||
if len(oldtime) !=5:
|
if len(oldtime) !=5:
|
||||||
# The marker hasn't been set yet
|
# The marker hasn't been set yet
|
||||||
raise checkfailed()
|
raise checkfailed()
|
||||||
|
|
||||||
desireddiff = map(int, args[1:])
|
desireddiff = list(map(int, args[1:]))
|
||||||
currenttime = (Crossfire.GetTime())[:5]
|
currenttime = (Crossfire.GetTime())[:5]
|
||||||
actualdiff = []
|
actualdiff = []
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue