diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-08-11 01:14:30 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-08-11 01:14:30 -0300 |
commit | 08ed7098e4df53a8ede5f65e27e77c783edfb901 (patch) | |
tree | 71462b1e219e25e907b013792b0739cce7a21d65 /protocol.py | |
parent | a0f64244cfc0ff5f36c1d9baab7783afd11d33c7 (diff) | |
download | server-08ed7098e4df53a8ede5f65e27e77c783edfb901.tar.gz server-08ed7098e4df53a8ede5f65e27e77c783edfb901.tar.bz2 server-08ed7098e4df53a8ede5f65e27e77c783edfb901.tar.xz server-08ed7098e4df53a8ede5f65e27e77c783edfb901.zip |
Summoning protocol, alpha version (working)
Diffstat (limited to 'protocol.py')
-rw-r--r-- | protocol.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocol.py b/protocol.py index b5327d2..fe71290 100644 --- a/protocol.py +++ b/protocol.py @@ -21,6 +21,7 @@ import utils import player import tavern import battle.main as battle +import battle.summons as summon from consts import ERR_BAD, ERR_DONE, PACKET_NACK, PACKET_ACK, PACKET_REGX # self.data structure: <Token> ; <Message> ; <JSON Arguments> @@ -106,7 +107,7 @@ def parse(packet, conn): elif data[1] == "recruit": r=tavern.recruit(data[2], t) elif data[1] == "summon": - r=battle.summon(data[2], t) + r=summon.summon(data[2], t) else: r=ERR_BAD |