fix some bugs, check the Graph 90 compatilibty and clean the project folder

This commit is contained in:
Shadow15510 2021-08-13 17:54:43 +02:00
parent 9d2fac9825
commit 8a32a42bea
3 changed files with 26 additions and 8 deletions

View file

@ -130,7 +130,7 @@ class Asci:
# PnJ
elif cell_test == 3:
self._chatting()
self._chatting(key)
# Fight
elif cell_test == 4:
@ -165,9 +165,21 @@ class Asci:
input()
# /!\ TEST /!\ #
def _chatting(self):
if "{0}:{1}".format(self.data[-2] + 10, self.data[-1] + 3) in self.dialogues:
dialogue = self.dialogues["{0}:{1}".format(self.data[-2] + 10, self.data[-1] + 3)]
def _chatting(self, direction):
if direction == 1:
x, y = self.data[-2] + 9, self.data[-1] + 3
if direction == 3:
x, y = self.data[-2] + 11, self.data[-1] + 3
elif direction == 5:
x, y = self.data[-2] + 10, self.data[-1] + 2
elif direction == 2:
x, y = self.data[-2] + 10, self.data[-1] + 4
if "{0}:{1}:{2}".format(self.data[2], x, y) in self.dialogues:
dialogue = self.dialogues["{0}:{1}:{2}".format(self.data[2], x, y)]
if self.data[0] in dialogue:
dialogue = dialogue[self.data[0]]
else:

View file

@ -23,7 +23,7 @@ r"""
| |
| |
| |
| |
| * |
| |
| |
+--|^|-------------------------+
@ -39,7 +39,7 @@ r"""
dialogue = {
"base": [0, "Hmmm ?", False],
"16:2": {
"0:16:1": {
0: [1, "Hey, bienvenue dans la map de test d'Asci !", False],
1: [0, "Comment vas-tu aujourd'hui ? 1. Tres bien, merci ! Et vous-meme ? 2. La ferme le vieux ! ", True],
2: [2, "Je vais bien ^.^", False],
@ -47,6 +47,14 @@ dialogue = {
4: [0, "Belle journée, n'est-ce pas ?", False],
"base": [0, "Bonjour, besoin d'aide ?", False],
},
"1:4:8": {
3: [0, "Tsst, tu as encore insulte quelqu'un ? 1. Oui... 2. Hein ? Quoi ?", True],
4: [0, "C'est pas tres malin, tu sais ?", False],
5: [0, "Je n'aime pas les menteurs. Sort de chez moi.", False],
"base": [0, "Oui ?", False]
}
}

View file

@ -1,2 +0,0 @@