Commit 80d2bd44 authored by Constantin's avatar Constantin

euclid grammar and blocks move

parent 19d129d2
......@@ -30,15 +30,15 @@ class Euclid (Npc):
return resp
if not self.questionAsked:
self.questionAsked = True
return ("asks", self.question, None)
return ("ask", self.question, None)
else:
if self.answerChecker(message):
# correct answer
self.npc.correctAnswerGiven = True
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))
return ("say", "That answer is correct. I will go annoy people somewhere else. Good Bye.", Euclid.DLevel(self.npc))
else: # wrong answer
return ("shouts", "WRONG! "+self.question, None)
return ("shout", "WRONG! "+self.question, None)
def __init__(self,game):
super().__init__(game, Euclid.DLevel(self))
......@@ -50,6 +50,9 @@ class Euclid (Npc):
def __repr__ (self):
return "E"
def blocksMove(self):
return True
def afterAnswering(self):
if self.correctAnswerGiven:
self.correctAnswerGiven = False
......
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