Fix Scorn's smith dialog

master
Nicolas Weeger 2023-04-13 19:48:14 +02:00
parent 340d6a9cb6
commit 4217a11b56
1 changed files with 3 additions and 2 deletions

View File

@ -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 = []