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
## ENDDIALOGCHECK
import Crossfire
class checkfailed(Exception):
pass
@ -32,12 +33,12 @@ try:
raise checkfailed()
markername = args[0]
oldtime = self.getStatus(markername).split("-")
oldtime = map(int, oldtime)
oldtime = list(map(int, oldtime))
if len(oldtime) !=5:
# The marker hasn't been set yet
raise checkfailed()
desireddiff = map(int, args[1:])
desireddiff = list(map(int, args[1:]))
currenttime = (Crossfire.GetTime())[:5]
actualdiff = []