Commit 70db79db authored by Constantin's avatar Constantin

euclid: grammar fixes

parent a047cdf4
......@@ -38,7 +38,7 @@ class Euclid (Npc):
newq, newac = random.choice(Euclid.questions)
return ("says", "That answer is correct. I will go annoy people somewhere else. Good Bye.", Euclid.DLevel(self.npc))
else: # wrong answer
return ("shouts", "WRONG!", None)
return ("shouts", "WRONG! "+self.question, None)
def __init__(self,game):
super().__init__(game, Euclid.DLevel(self))
......
File mode changed from 100644 to 100755
......@@ -25,8 +25,8 @@ class Npc (Thing):
return None
def analyzeAnswer(self, teller, verb, message):
# return
# 1. what should be said, if None: do not react
# 2. the saying verb (say, shout...) if saying anything
# 1. the saying verb (say, shout...) if saying anything
# 2. what should be said, if None: do not react
# 3. a new DialogLevel instance for further use if you want change
resp = self.checkStandardRequests(teller,verb,message)
if resp is None: # didn't understand
......@@ -58,7 +58,7 @@ class Npc (Thing):
assert isinstance(self.currentDialogLevel,Npc.DialogLevel)
analresp = self.currentDialogLevel.analyzeAnswer(teller, verb, message)
assert len(analresp) == 3
newmsg, newverb, newdialvl = analresp
newverb, newmsg, newdialvl = analresp
if newdialvl is not None:
assert isinstance(newdialvl,Npc.DialogLevel)
self.currentDialogLevel = newdialvl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment