From 4217a11b56e1200ce4345aae116dfccb02656371 Mon Sep 17 00:00:00 2001 From: Nicolas Weeger Date: Thu, 13 Apr 2023 19:48:14 +0200 Subject: [PATCH] Fix Scorn's smith dialog --- python/dialog/pre/age.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/dialog/pre/age.py b/python/dialog/pre/age.py index 128d7a36b..be78e76de 100644 --- a/python/dialog/pre/age.py +++ b/python/dialog/pre/age.py @@ -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 = []